From: Alan Hourihane Date: Fri, 30 Apr 2004 09:44:22 +0000 (+0000) Subject: If we can't allocate the rowimage - bail X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ef5c82bd02926ac851537f1382352f8f6af33ece;p=mesa.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 bdf6f1d4286..eada4740956 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;