diff --git a/dlls/wined3d/buffer.c b/dlls/wined3d/buffer.c index b26f37df751..20b40cbcf7f 100644 --- a/dlls/wined3d/buffer.c +++ b/dlls/wined3d/buffer.c @@ -735,10 +735,10 @@ static void STDMETHODCALLTYPE buffer_PreLoad(IWineD3DBuffer *iface) */ if (decl_changed) { - ++This->conversion_count; + ++This->decl_change_count; This->draw_count = 0; - if (This->conversion_count > VB_MAXDECLCHANGES) + if (This->decl_change_count > VB_MAXDECLCHANGES) { FIXME("Too many declaration changes, stopping converting\n"); @@ -763,7 +763,7 @@ static void STDMETHODCALLTYPE buffer_PreLoad(IWineD3DBuffer *iface) * decl changes and reset the decl change count after a specific number of them */ ++This->draw_count; - if (This->draw_count > VB_RESETDECLCHANGE) This->conversion_count = 0; + if (This->draw_count > VB_RESETDECLCHANGE) This->decl_change_count = 0; } if (decl_changed) diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index 489137c7635..386aea5791a 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -2373,7 +2373,7 @@ struct wined3d_buffer LONG lock_count; /* conversion stuff */ - UINT conversion_count; + UINT decl_change_count; UINT draw_count; UINT stride; /* 0 if no conversion */ UINT conversion_stride; /* 0 if no shifted conversion */