From: Emil Velikov Date: Fri, 11 Nov 2016 16:43:28 +0000 (+0000) Subject: mesa: fold always true conditional X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f12fcb6d36905fe7df06ce4514817f5139c4158;p=mesa.git mesa: fold always true conditional Signed-off-by: Emil Velikov Reviewed-by: Brian Paul --- 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) {