mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-30 00:58:14 +02:00
st/egl: Create primary texture not display target
This commit is contained in:
parent
0500404cdf
commit
8ccec83e63
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue