fixed window size initialization bug
authorBrian Paul <brian.paul@tungstengraphics.com>
Sun, 16 Jun 2002 01:11:10 +0000 (01:11 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sun, 16 Jun 2002 01:11:10 +0000 (01:11 +0000)
src/mesa/drivers/x11/xm_api.c

index 46e7454b97177a0b1946fa09847f446b97ccbc02..288eeff6b9ffa45734e1c62f0c862a4b5bd10318 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: xm_api.c,v 1.37 2002/06/13 04:28:30 brianp Exp $ */
+/* $Id: xm_api.c,v 1.38 2002/06/16 01:11:10 brianp Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -1277,6 +1277,8 @@ static GLboolean initialize_visual_and_buffer( int client,
       get_drawable_size( v->display, window, &w, &h );
       b->width = w;
       b->height = h;
+      b->mesa_buffer.Width = w;
+      b->mesa_buffer.Height = h;
 
       b->frontbuffer = window;