swpipe: Don't dereference pointer

This commit is contained in:
Alexander von Gluck IV 2012-12-19 20:02:23 -06:00
parent ecbdee63cf
commit b9d7097111

View File

@ -52,6 +52,11 @@ hgl_viewport(struct gl_context* glContext, GLint x, GLint y,
glContext, x, y, width, height);
struct hgl_context *context = (struct hgl_context*)glContext->DriverCtx;
if (!context) {
ERROR("%s: No context yet. bailing.\n", __func__);
return;
}
int32 bitmapWidth;
int32 bitmapHeight;