wined3d: Disable WINED3DFMT_NULL on backbuffer ORM.

Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Matteo Bruni 2021-03-05 17:06:24 +01:00 committed by Alexandre Julliard
parent d06cdcd646
commit b67e9ddbb3
1 changed files with 2 additions and 1 deletions

View File

@ -3134,7 +3134,8 @@ static BOOL init_format_texture_info(struct wined3d_adapter *adapter, struct win
&& (format->f.flags[WINED3D_GL_RES_TYPE_TEX_2D] & WINED3DFMT_FLAG_INTEGER)) && (format->f.flags[WINED3D_GL_RES_TYPE_TEX_2D] & WINED3DFMT_FLAG_INTEGER))
continue; continue;
if (wined3d_settings.offscreen_rendering_mode != ORM_FBO && format->f.id == WINED3DFMT_D16_LOCKABLE) if (wined3d_settings.offscreen_rendering_mode != ORM_FBO
&& (format->f.id == WINED3DFMT_D16_LOCKABLE || format->f.id == WINED3DFMT_NULL))
continue; continue;
format->internal = format_texture_info[i].gl_internal; format->internal = format_texture_info[i].gl_internal;