diff options
author | Xiang, Haihao <[email protected]> | 2007-08-29 13:03:34 -0400 |
---|---|---|
committer | Xiang, Haihao <[email protected]> | 2007-08-29 13:03:34 -0400 |
commit | f6a89e1884535a6136900febc163ee930c1d2179 (patch) | |
tree | e0278f1d9e7d3ac2579c66446b461e7d965a18ab /src/mesa | |
parent | 410d8f7cdb40889e66f5c6794878ad9a5f572ee7 (diff) |
i965: check NULL pointer. fix bug#12193
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_pixel_bitmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |