wined3d: Initialise typeless formats after all formats properties are initialised.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2018-09-17 11:06:26 +02:00 committed by Alexandre Julliard
parent 34b7e19cdb
commit 454f87980a
1 changed files with 2 additions and 1 deletions

View File

@ -3954,10 +3954,11 @@ BOOL wined3d_adapter_init_format_info(struct wined3d_adapter *adapter, struct wi
apply_format_fixups(adapter, gl_info);
init_format_fbo_compat_info(adapter, ctx);
init_format_filter_info(adapter, gl_info);
if (!init_typeless_formats(adapter)) goto fail;
init_format_gen_mipmap_info(adapter, gl_info);
init_format_depth_bias_scale(adapter, ctx);
if (!init_typeless_formats(adapter)) goto fail;
return TRUE;
fail: