Stefan Dösinger : wined3d: Increment the buffer draw count if the buffer was clean.

Alexandre Julliard julliard at winehq.org
Tue Dec 29 09:06:39 CST 2009


Module: wine
Branch: master
Commit: 9750cca9b13f20c03e1ecf7c5b383023ad0f7f93
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9750cca9b13f20c03e1ecf7c5b383023ad0f7f93

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Wed Dec 23 15:41:53 2009 +0100

wined3d: Increment the buffer draw count if the buffer was clean.

---

 dlls/wined3d/buffer.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/buffer.c b/dlls/wined3d/buffer.c
index 20b40cb..f9242e4 100644
--- a/dlls/wined3d/buffer.c
+++ b/dlls/wined3d/buffer.c
@@ -726,6 +726,8 @@ static void STDMETHODCALLTYPE buffer_PreLoad(IWineD3DBuffer *iface)
     if (!decl_changed && !(This->flags & WINED3D_BUFFER_HASDESC && This->flags & WINED3D_BUFFER_DIRTY))
     {
         context_release(context);
+        ++This->draw_count;
+        if (This->draw_count > VB_RESETDECLCHANGE) This->decl_change_count = 0;
         return;
     }
 




More information about the wine-cvs mailing list