mirror of
https://github.com/brl/mutter.git
synced 2025-02-02 06:42:28 +00:00
cogl-framebuffer-gl: Work again on GLESv2
This commit is contained in:
parent
68d9ba3b65
commit
f8cce5f6cb
@ -107,6 +107,12 @@
|
|||||||
#ifndef GL_PACK_INVERT_MESA
|
#ifndef GL_PACK_INVERT_MESA
|
||||||
#define GL_PACK_INVERT_MESA 0x8758
|
#define GL_PACK_INVERT_MESA 0x8758
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef GL_BACK_LEFT
|
||||||
|
#define GL_BACK_LEFT 0x0402
|
||||||
|
#endif
|
||||||
|
#ifndef GL_BACK_RIGHT
|
||||||
|
#define GL_BACK_RIGHT 0x0403
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef GL_COLOR
|
#ifndef GL_COLOR
|
||||||
#define GL_COLOR 0x1800
|
#define GL_COLOR 0x1800
|
||||||
@ -245,6 +251,9 @@ _cogl_framebuffer_gl_flush_stereo_mode_state (CoglFramebuffer *framebuffer)
|
|||||||
if (framebuffer->type == COGL_FRAMEBUFFER_TYPE_OFFSCREEN)
|
if (framebuffer->type == COGL_FRAMEBUFFER_TYPE_OFFSCREEN)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (!ctx->glDrawBuffer)
|
||||||
|
return;
|
||||||
|
|
||||||
/* The one-shot default draw buffer setting in _cogl_framebuffer_gl_bind
|
/* The one-shot default draw buffer setting in _cogl_framebuffer_gl_bind
|
||||||
* must have already happened. If not it would override what we set here. */
|
* must have already happened. If not it would override what we set here. */
|
||||||
g_assert (ctx->was_bound_to_onscreen);
|
g_assert (ctx->was_bound_to_onscreen);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user