Commit 9494cdc5 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

wined3d: fixed a NULL deref in create_arb_blt_fragment_program (Coverity).

parent bf1e9a2e
...@@ -3188,8 +3188,9 @@ static GLuint create_arb_blt_fragment_program(const struct wined3d_gl_info *gl_i ...@@ -3188,8 +3188,9 @@ static GLuint create_arb_blt_fragment_program(const struct wined3d_gl_info *gl_i
fprogram = masked ? blt_fprograms_masked[tex_type] : blt_fprograms_full[tex_type]; fprogram = masked ? blt_fprograms_masked[tex_type] : blt_fprograms_full[tex_type];
if (!fprogram) if (!fprogram)
{ {
FIXME("tex_type %#x not supported\n", tex_type); FIXME("tex_type %#x not supported, falling back to tex_2d\n", tex_type);
tex_type = tex_2d; tex_type = tex_2d;
fprogram = masked ? blt_fprograms_masked[tex_type] : blt_fprograms_full[tex_type];
} }
GL_EXTCALL(glGenProgramsARB(1, &program_id)); GL_EXTCALL(glGenProgramsARB(1, &program_id));
......
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