mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
egl: look for EGL_IMAGE_FROM_X11_PIXMAP as winsys feature
instead of looking at the ctx->private_feature_flags to determine if Cogl supports creating an EGLImage from a X Pixmap we now check the renderer private features instead since these are what get setup in check_egl_extensions. The conflicting flags defined in cogl-internal.h should be removed since they are un-used. Signed-off-by: Neil Roberts <neil@linux.intel.com>
This commit is contained in:
parent
ffe3788b85
commit
6940114b6e
@ -1553,13 +1553,16 @@ _cogl_winsys_texture_pixmap_x11_create (CoglTexturePixmapX11 *tex_pixmap)
|
||||
CoglTexturePixmapEGL *egl_tex_pixmap;
|
||||
EGLint attribs[] = {EGL_IMAGE_PRESERVED_KHR, EGL_TRUE, EGL_NONE};
|
||||
CoglPixelFormat texture_format;
|
||||
CoglRendererEGL *egl_renderer;
|
||||
|
||||
/* FIXME: It should be possible to get to a CoglContext from any
|
||||
* CoglTexture pointer. */
|
||||
_COGL_GET_CONTEXT (ctx, FALSE);
|
||||
|
||||
if (!(ctx->private_feature_flags &
|
||||
COGL_PRIVATE_FEATURE_EGL_IMAGE_FROM_X11_PIXMAP) ||
|
||||
egl_renderer = ctx->display->renderer->winsys;
|
||||
|
||||
if (!(egl_renderer->private_features &
|
||||
COGL_EGL_WINSYS_FEATURE_EGL_IMAGE_FROM_X11_PIXMAP) ||
|
||||
!(ctx->private_feature_flags &
|
||||
COGL_PRIVATE_FEATURE_TEXTURE_2D_FROM_EGL_IMAGE))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user