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

This commit is contained in:
Stefan Dösinger 2009-12-23 15:41:53 +01:00 committed by Alexandre Julliard
parent f90b8b6352
commit 9750cca9b1
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}