glamor: explicitly check for GL_OES_EGL_image
Otherwise we'll fail miserably later on as we try to use glEGLImageTargetTexture2DOES. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
This commit is contained in:
parent
139e36dd5c
commit
58d54ee82d
|
@ -545,6 +545,11 @@ glamor_init(ScreenPtr screen, unsigned int flags)
|
|||
}
|
||||
}
|
||||
|
||||
if (!epoxy_has_gl_extension("GL_OES_EGL_image")) {
|
||||
ErrorF("GL_OES_EGL_image not available\n");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
glamor_priv->has_rw_pbo = FALSE;
|
||||
if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP)
|
||||
glamor_priv->has_rw_pbo = TRUE;
|
||||
|
|
Loading…
Reference in New Issue
Block a user