d3d1x: flush the pipe context when presenting
authorLuca Barbieri <luca@luca-barbieri.com>
Thu, 23 Sep 2010 14:02:58 +0000 (16:02 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Thu, 23 Sep 2010 14:06:03 +0000 (16:06 +0200)
src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp

index 89be7f5b17b853a9ab582bac64fa6574a0d9811b..99d80eae319832ce27e93c87a59e42a48048b8ae 100644 (file)
@@ -1139,6 +1139,8 @@ struct GalliumDXGISwapChain : public GalliumDXGIObject<IDXGISwapChain, GalliumDX
                if(dst_surface)
                        pipe->screen->tex_surface_destroy(dst_surface);
 
+               pipe->flush(pipe, PIPE_FLUSH_RENDER_CACHE | PIPE_FLUSH_FRAME);
+
                if(db)
                {
                        if(!surface->swap_buffers(surface))