summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2016-11-11 16:43:28 +0000
committerEmil Velikov <[email protected]>2016-11-21 14:46:40 +0000
commit4f12fcb6d36905fe7df06ce4514817f5139c4158 (patch)
treed4f0cb09084c3547e6d6a71900ffd4a1d26db988
parente70d0d22a2dccc1df2c88890a2964491cdafac94 (diff)
mesa: fold always true conditional
Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Brian Paul <[email protected]>
-rw-r--r--src/mesa/main/context.c6
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) {