Check for a valid context
This commit is contained in:
@@ -328,7 +328,8 @@ _mesa_resize_framebuffer(GLcontext *ctx, struct gl_framebuffer *fb,
|
|||||||
fb->Height = height;
|
fb->Height = height;
|
||||||
|
|
||||||
/* to update scissor / window bounds */
|
/* to update scissor / window bounds */
|
||||||
_mesa_update_draw_buffer_bounds(ctx);
|
if (ctx)
|
||||||
|
_mesa_update_draw_buffer_bounds(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user