gles2: don't disable clip planes for GLES2
GLES2 doesn't provide user clip planes (you would have to use a vertex + fragment shader to achieve the same kind of result) so we make sure not to call glEnable/Disable with any of the GL_CLIP_PLANE0..3 defines. http://bugzilla.o-hand.com/show_bug.cgi?id=2177
This commit is contained in:
parent
00bb189e71
commit
60cad4bf0b
@ -603,6 +603,7 @@ _cogl_clip_stack_flush (CoglClipStack *stack,
|
|||||||
|
|
||||||
has_clip_planes = cogl_features_available (COGL_FEATURE_FOUR_CLIP_PLANES);
|
has_clip_planes = cogl_features_available (COGL_FEATURE_FOUR_CLIP_PLANES);
|
||||||
|
|
||||||
|
if (has_clip_planes)
|
||||||
disable_clip_planes ();
|
disable_clip_planes ();
|
||||||
disable_stencil_buffer ();
|
disable_stencil_buffer ();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user