mesa: flush vertices in test_framebuffer_completeness
authorMarek Olšák <maraeo@gmail.com>
Sat, 4 Aug 2012 11:37:03 +0000 (13:37 +0200)
committerMarek Olšák <maraeo@gmail.com>
Wed, 15 Aug 2012 17:20:57 +0000 (19:20 +0200)
src/mesa/main/fbobject.c

index bc4497e57d85650cc3f01b91a2126e847156356e..aa8ba1882cefad302d68da5c3dbd78193c29bb97 100644 (file)
@@ -685,6 +685,9 @@ _mesa_test_framebuffer_completeness(struct gl_context *ctx,
 
    assert(_mesa_is_user_fbo(fb));
 
+   /* we're changing framebuffer fields here */
+   FLUSH_VERTICES(ctx, _NEW_BUFFERS);
+
    numImages = 0;
    fb->Width = 0;
    fb->Height = 0;