From: Alan Hourihane Date: Fri, 30 Apr 2004 09:44:22 +0000 (+0000) Subject: If we can't allocate the rowimage - bail X-Git-Tag: 062012170305~24556 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef5c82bd02926ac851537f1382352f8f6af33ece;p=profile%2Fivi%2Fmesa.git If we can't allocate the rowimage - bail --- diff --git a/src/mesa/drivers/x11/xm_api.c b/src/mesa/drivers/x11/xm_api.c index bdf6f1d..eada474 100644 --- a/src/mesa/drivers/x11/xm_api.c +++ b/src/mesa/drivers/x11/xm_api.c @@ -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;