From: Xiang, Haihao Date: Wed, 29 Aug 2007 17:03:34 +0000 (-0400) Subject: i965: check NULL pointer. fix bug#12193 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f6a89e1884535a6136900febc163ee930c1d2179;p=mesa.git i965: check NULL pointer. fix bug#12193 --- diff --git a/src/mesa/drivers/dri/i965/intel_pixel_bitmap.c b/src/mesa/drivers/dri/i965/intel_pixel_bitmap.c index f3f062e6517..23f381fe917 100644 --- a/src/mesa/drivers/dri/i965/intel_pixel_bitmap.c +++ b/src/mesa/drivers/dri/i965/intel_pixel_bitmap.c @@ -174,6 +174,8 @@ do_blit_bitmap( GLcontext *ctx, GLubyte ub[4]; } color; + if (!dst) + return GL_FALSE; if (unpack->BufferObj->Name) { bitmap = map_pbo(ctx, width, height, unpack, bitmap);