d3dx9: Dump bytecode if parameter evaluator creation failed.

Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Paul Gofman 2017-08-31 16:08:30 +03:00 committed by Alexandre Julliard
parent 14fab72269
commit c48658dbb8
1 changed files with 3 additions and 0 deletions

View File

@ -1324,6 +1324,9 @@ HRESULT d3dx_create_param_eval(struct d3dx9_base_effect *base_effect, void *byte
err_out:
WARN("Error creating parameter evaluator.\n");
if (TRACE_ON(d3dx))
dump_bytecode(byte_code, byte_code_size);
d3dx_free_param_eval(peval);
*peval_out = NULL;
return ret;