wined3d: fixed a NULL deref in create_arb_blt_fragment_program (Coverity).
authorMarcus Meissner <marcus@jet.franken.de>
Sat, 8 May 2010 22:10:28 +0000 (00:10 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 10 May 2010 08:04:31 +0000 (10:04 +0200)
dlls/wined3d/arb_program_shader.c

index e79538a5c75e4be7f71481ce6075b6b780bdee7c..f62ff565adcbda0c20d47a63068250b5b7646a17 100644 (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));