mesa: fold always true conditional
authorEmil Velikov <emil.velikov@collabora.com>
Fri, 11 Nov 2016 16:43:28 +0000 (16:43 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 21 Nov 2016 14:46:40 +0000 (14:46 +0000)
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/context.c

index 80bee16d453411e6ae48438d7bde0e3f3e30aa13..bd4551e2e53fdccac46d943f89521760480e8565 100644 (file)
@@ -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) {