don't use params passed to Clear()
authorBrian Paul <brian.paul@tungstengraphics.com>
Sat, 21 Oct 2006 21:13:40 +0000 (21:13 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sat, 21 Oct 2006 21:13:40 +0000 (21:13 +0000)
src/mesa/drivers/windows/gdi/wmesa.c

index 78e3d9ec8d137c80f690c3b94b089271cc841ee4..0dfd7a6b393d9d0f1a650a6eb7e3e155e701ef40 100644 (file)
@@ -284,10 +284,14 @@ static void clear_color(GLcontext *ctx, const GLfloat color[4])
 static void clear(GLcontext *ctx, 
                  GLbitfield mask, 
                  GLboolean all, 
-                 GLint x, GLint y, 
-                 GLint width, GLint height
+                 GLint xFoo, GLint yFoo,
+                 GLint widthFoo, GLint heightFoo
 {
 #define FLIP(Y)  (ctx->DrawBuffer->Height - (Y) - 1)
+    const GLint x = ctx->DrawBuffer->_Xmin;
+    const GLint y = ctx->DrawBuffer->_Ymin;
+    const GLint height = ctx->DrawBuffer->_Ymax - ctx->DrawBuffer->_Ymin;
+    const GLint width  = ctx->DrawBuffer->_Xmax - ctx->DrawBuffer->_Xmin;
 
     WMesaContext pwc = wmesa_context(ctx);
     WMesaFramebuffer pwfb = wmesa_framebuffer(ctx->DrawBuffer);