If we can't allocate the rowimage - bail
authorAlan Hourihane <alanh@tungstengraphics.com>
Fri, 30 Apr 2004 09:44:22 +0000 (09:44 +0000)
committerAlan Hourihane <alanh@tungstengraphics.com>
Fri, 30 Apr 2004 09:44:22 +0000 (09:44 +0000)
src/mesa/drivers/x11/xm_api.c

index bdf6f1d42861090465ecaf2b4c1869c952161b9d..eada47409566e197cddcf2165294cd5f247d91da 100644 (file)
@@ -1341,6 +1341,8 @@ static GLboolean initialize_visual_and_buffer( int client,
                                   32,                   /*bitmap_pad*/
                                   0                     /*bytes_per_line*/ );
 #endif
+      if (!b->rowimage)
+         return GL_FALSE;
    }
 
    return GL_TRUE;