mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
egl_dri2: Enable pixmap bind_to_texture according to the extension
This commit is contained in:
parent
381ea0d67a
commit
a8128d7d4b
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue