mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
cogl/gl-framebuffer: Fail without QUERY_FRAMEBUFFER_BITS
glGetIntegerv() with GL_RED_BITS/GL_GREEN_BITS/GL_BLUE_BITS/etc. is not supported with the GL core context, so there is no point in falling back to that without supporting COGL_PRIVATE_FEATURE_QUERY_FRAMEBUFFER_BITS, as this will cause an GL error. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3047>
This commit is contained in:
parent
fad240f437
commit
c3af4c1b15
@ -119,12 +119,7 @@ ensure_bits_initialized (CoglGlFramebufferBack *gl_framebuffer_back)
|
|||||||
else
|
else
|
||||||
#endif /* HAVE_COGL_GL */
|
#endif /* HAVE_COGL_GL */
|
||||||
{
|
{
|
||||||
GE (ctx, glGetIntegerv (GL_RED_BITS, &bits->red));
|
return FALSE;
|
||||||
GE (ctx, glGetIntegerv (GL_GREEN_BITS, &bits->green));
|
|
||||||
GE (ctx, glGetIntegerv (GL_BLUE_BITS, &bits->blue));
|
|
||||||
GE (ctx, glGetIntegerv (GL_ALPHA_BITS, &bits->alpha));
|
|
||||||
GE (ctx, glGetIntegerv (GL_DEPTH_BITS, &bits->depth));
|
|
||||||
GE (ctx, glGetIntegerv (GL_STENCIL_BITS, &bits->stencil));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
COGL_NOTE (FRAMEBUFFER,
|
COGL_NOTE (FRAMEBUFFER,
|
||||||
|
@ -129,12 +129,7 @@ ensure_bits_initialized (CoglGlFramebufferFbo *gl_framebuffer_fbo)
|
|||||||
else
|
else
|
||||||
#endif /* HAVE_COGL_GL */
|
#endif /* HAVE_COGL_GL */
|
||||||
{
|
{
|
||||||
GE (ctx, glGetIntegerv (GL_RED_BITS, &bits->red));
|
return FALSE;
|
||||||
GE (ctx, glGetIntegerv (GL_GREEN_BITS, &bits->green));
|
|
||||||
GE (ctx, glGetIntegerv (GL_BLUE_BITS, &bits->blue));
|
|
||||||
GE (ctx, glGetIntegerv (GL_ALPHA_BITS, &bits->alpha));
|
|
||||||
GE (ctx, glGetIntegerv (GL_DEPTH_BITS, &bits->depth));
|
|
||||||
GE (ctx, glGetIntegerv (GL_STENCIL_BITS, &bits->stencil));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_cogl_has_private_feature (ctx, COGL_PRIVATE_FEATURE_ALPHA_TEXTURES) &&
|
if (!_cogl_has_private_feature (ctx, COGL_PRIVATE_FEATURE_ALPHA_TEXTURES) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user