From 4f12fcb6d36905fe7df06ce4514817f5139c4158 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Fri, 11 Nov 2016 16:43:28 +0000 Subject: [PATCH] mesa: fold always true conditional Signed-off-by: Emil Velikov Reviewed-by: Brian Paul --- src/mesa/main/context.c | 6 ++---- 1 file 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) { -- 2.11.0