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

This commit is contained in:
Marcus Meissner 2010-05-09 00:10:28 +02:00 committed by Alexandre Julliard
parent bf1e9a2e93
commit 9494cdc56f
1 changed files with 2 additions and 1 deletions

View File

@ -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];
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;
fprogram = masked ? blt_fprograms_masked[tex_type] : blt_fprograms_full[tex_type];
}
GL_EXTCALL(glGenProgramsARB(1, &program_id));