Commit b67e9ddb authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

wined3d: Disable WINED3DFMT_NULL on backbuffer ORM.

parent d06cdcd6
......@@ -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))
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;
format->internal = format_texture_info[i].gl_internal;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment