From: Jakob Bornecrantz Date: Wed, 5 Aug 2009 18:15:21 +0000 (+0100) Subject: st/egl: Create primary texture not display target X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8ccec83e63932d78bb67638e013b9645e609da42;p=mesa.git st/egl: Create primary texture not display target --- diff --git a/src/gallium/state_trackers/egl/egl_surface.c b/src/gallium/state_trackers/egl/egl_surface.c index 7413c9b73b8..d4cd2d3c743 100644 --- a/src/gallium/state_trackers/egl/egl_surface.c +++ b/src/gallium/state_trackers/egl/egl_surface.c @@ -98,8 +98,8 @@ drm_create_texture(_EGLDriver *drv, goto err_buf; memset(&templat, 0, sizeof(templat)); - templat.tex_usage |= PIPE_TEXTURE_USAGE_DISPLAY_TARGET; - templat.tex_usage |= PIPE_TEXTURE_USAGE_RENDER_TARGET; + templat.tex_usage = PIPE_TEXTURE_USAGE_RENDER_TARGET; + templat.tex_usage |= PIPE_TEXTURE_USAGE_PRIMARY; templat.target = PIPE_TEXTURE_2D; templat.last_level = 0; templat.depth[0] = 1;