On 11/11/2016 09:43 AM, Emil Velikov wrote:
From: Emil Velikov <[email protected]>

Signed-off-by: Emil Velikov <[email protected]>
---
  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 80bee16..bd4551e 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) {


Reviewed-by: Brian Paul <[email protected]>

_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to