mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 01:08:03 +02:00
i965: check NULL pointer. fix bug#12193
This commit is contained in:
parent
410d8f7cdb
commit
f6a89e1884
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue