mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
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
9234757c35
commit
0e43647fed
@ -603,6 +603,7 @@ _cogl_clip_stack_flush (CoglClipStack *stack,
|
||||
|
||||
has_clip_planes = cogl_features_available (COGL_FEATURE_FOUR_CLIP_PLANES);
|
||||
|
||||
if (has_clip_planes)
|
||||
disable_clip_planes ();
|
||||
disable_stencil_buffer ();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user