main: Refactor _mesa_update_draw_buffer_bounds.
[mesa.git] / src / mesa / drivers / dri / i915 / i915_vtbl.c
index 02ff312c2e6d2f421a3142624000fb71d5203820..80bd249fa7b85a99c5e86822d91d44050d885f81 100644 (file)
@@ -734,7 +734,7 @@ i915_update_draw_buffer(struct intel_context *intel)
       /* this updates the DrawBuffer->_NumColorDrawBuffers fields, etc */
       _mesa_update_framebuffer(ctx, ctx->ReadBuffer, ctx->DrawBuffer);
       /* this updates the DrawBuffer's Width/Height if it's a FBO */
-      _mesa_update_draw_buffer_bounds(ctx);
+      _mesa_update_draw_buffer_bounds(ctx, ctx->DrawBuffer);
    }
 
    if (fb->_Status != GL_FRAMEBUFFER_COMPLETE_EXT) {