mirror of
https://github.com/brl/mutter.git
synced 2025-02-19 22:54:08 +00:00
cogl-framebuffer.c: GL_DEPTH_STENCIL not supported in gles
There is GL_INVALID_ENUM error for GL_DEPTH_STENCIL when call glRenderbufferStorage() with OpenGL ES backend. So enable this only for OpenGL backend. Signed-off-by: Robert Bragg <robert@linux.intel.com>
This commit is contained in:
parent
4533edeef0
commit
ffd5c32209
@ -479,7 +479,9 @@ cogl_offscreen_new_to_texture (CoglHandle texhandle)
|
|||||||
|
|
||||||
if ((have_working_flags &&
|
if ((have_working_flags &&
|
||||||
try_creating_fbo (offscreen, flags, texhandle)) ||
|
try_creating_fbo (offscreen, flags, texhandle)) ||
|
||||||
|
#ifdef HAVE_COGL_GL
|
||||||
try_creating_fbo (offscreen, flags = _TRY_DEPTH_STENCIL, texhandle) ||
|
try_creating_fbo (offscreen, flags = _TRY_DEPTH_STENCIL, texhandle) ||
|
||||||
|
#endif
|
||||||
try_creating_fbo (offscreen, flags = _TRY_DEPTH | _TRY_STENCIL,
|
try_creating_fbo (offscreen, flags = _TRY_DEPTH | _TRY_STENCIL,
|
||||||
texhandle) ||
|
texhandle) ||
|
||||||
try_creating_fbo (offscreen, flags = _TRY_STENCIL, texhandle) ||
|
try_creating_fbo (offscreen, flags = _TRY_STENCIL, texhandle) ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user