diff options
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/context.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 80bee16d453..bd4551e2e53 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1696,10 +1696,8 @@ _mesa_make_current( struct gl_context *newCtx, */ newCtx->NewState |= _NEW_BUFFERS; - if (drawBuffer) { - _mesa_check_init_viewport(newCtx, - drawBuffer->Width, drawBuffer->Height); - } + _mesa_check_init_viewport(newCtx, + drawBuffer->Width, drawBuffer->Height); } if (newCtx->FirstTimeCurrent) { |