mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
framebuffer: Checks if glBindFramebuffer() exists when using GLES1
With GLES 1, frame buffers are a optional extensions. We need to make sure the pointer exist before calling the function and do that by just checkout the corresponding feature.
This commit is contained in:
parent
d384466a58
commit
bde6979c06
@ -1373,7 +1373,9 @@ bind_gl_framebuffer (CoglContext *ctx,
|
||||
_cogl_framebuffer_get_winsys (framebuffer);
|
||||
winsys->onscreen_bind (COGL_ONSCREEN (framebuffer));
|
||||
#endif
|
||||
GE (glBindFramebuffer (target, 0));
|
||||
/* glBindFramebuffer is an an extension with OpenGL ES 1.1 */
|
||||
if (cogl_features_available (COGL_FEATURE_OFFSCREEN))
|
||||
GE (glBindFramebuffer (target, 0));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user