gallium: assign framebuffer width, height
authorBrian <brian.paul@tungstengraphics.com>
Thu, 20 Mar 2008 21:02:32 +0000 (15:02 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 20 Mar 2008 21:04:08 +0000 (15:04 -0600)
src/mesa/state_tracker/st_atom_framebuffer.c

index 43259c3ecb198aa9f3359544636466799161b74c..02573af8f0a7fff1ecbc1aa8ba05c23f3b549289 100644 (file)
@@ -52,6 +52,9 @@ update_framebuffer_state( struct st_context *st )
 
    memset(framebuffer, 0, sizeof(*framebuffer));
 
+   framebuffer->width = fb->Width;
+   framebuffer->height = fb->Height;
+
    /* Examine Mesa's ctx->DrawBuffer->_ColorDrawBuffers state
     * to determine which surfaces to draw to
     */