summaryrefslogtreecommitdiff
path: root/src/egl
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-02-04 12:32:30 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-02-07 14:01:30 +0100
commita8128d7d4b7b89d483ead0003140af68a1c95ebf (patch)
treeeedfff989a8b3e39fe57b06d9e3ef5c8d8aedde2 /src/egl
parent381ea0d67a6d84a34d23571c49bbf4339ffda364 (diff)
egl_dri2: Enable pixmap bind_to_texture according to the extension
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/drivers/dri2/egl_dri2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index f16bec2f90..fc479cffd0 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -173,7 +173,8 @@ dri2_add_config(_EGLDisplay *disp, const __DRIconfig *dri_config, int id,
base.NativeRenderable = EGL_TRUE;
base.SurfaceType = surface_type;
- if (surface_type & (EGL_PIXMAP_BIT | EGL_PBUFFER_BIT)) {
+ if (surface_type & (EGL_PBUFFER_BIT |
+ (disp->Extensions.NOK_texture_from_pixmap ? EGL_PIXMAP_BIT : 0))) {
base.BindToTextureRGB = bind_to_texture_rgb;
if (base.AlphaSize > 0)
base.BindToTextureRGBA = bind_to_texture_rgba;