i965/miptree: Check tex image allocation failures
[mesa.git] / src / mesa / drivers / dri / i915 / i830_vtbl.c
index 4fff29ee88a05bfc67896a4dde1614526d5e9b16..8ed8ff555ba66ea17b574a7d6572026587dc2516 100644 (file)
@@ -732,7 +732,7 @@ i830_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) {