Fix logic error in viewport function so that we still resize the buffers if the viewp...
authorKarl Schultz <kschultz@freedesktop.org>
Thu, 30 Mar 2006 18:03:41 +0000 (18:03 +0000)
committerKarl Schultz <kschultz@freedesktop.org>
Thu, 30 Mar 2006 18:03:41 +0000 (18:03 +0000)
src/mesa/drivers/windows/gdi/wmesa.c

index 789fe53c3db218bd782888e8c29e4dc20d264960..08eee4d9dcce695fc80b28a5943dd5aa06c55483 100644 (file)
@@ -1080,14 +1080,11 @@ static void wmesa_viewport(GLcontext *ctx,
 
     wmesa_get_buffer_size(ctx->WinSysDrawBuffer, &new_width, &new_height);
 
-    if (new_width != width || new_height != height) {
-        /**
-        * Either the window was resized or the viewport changed - not sure which.
-        * So call resize buffers to resize them if the window size changed.
-        */
-       wmesa_resize_buffers(ctx, ctx->WinSysDrawBuffer, new_width, new_height);
-       ctx->NewState |= _NEW_BUFFERS;  /* to update scissor / window bounds */
-   }
+    /**
+     * Resize buffers if the window size changed.
+     */
+    wmesa_resize_buffers(ctx, ctx->WinSysDrawBuffer, new_width, new_height);
+    ctx->NewState |= _NEW_BUFFERS;  /* to update scissor / window bounds */
 }