Module: wine Branch: master Commit: 46d879eef60d6c2c6c8a7e9daf12b1448bdec7d5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=46d879eef60d6c2c6c8a7e9daf...
Author: Stefan Dösinger stefan@codeweavers.com Date: Sun Feb 6 23:28:11 2011 +0100
wined3d: Don't drop VBOs for full buffer reloading without conversion.
---
dlls/wined3d/buffer.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/buffer.c b/dlls/wined3d/buffer.c index 9e4ae2a..6d44c2e 100644 --- a/dlls/wined3d/buffer.c +++ b/dlls/wined3d/buffer.c @@ -1002,7 +1002,7 @@ void CDECL wined3d_buffer_preload(struct wined3d_buffer *buffer) * changes it every minute drop the VBO after VB_MAX_DECL_CHANGES minutes. So count draws without * decl changes and reset the decl change count after a specific number of them */ - if (buffer_is_fully_dirty(buffer)) + if (buffer->conversion_map && buffer_is_fully_dirty(buffer)) { ++buffer->full_conversion_count; if (buffer->full_conversion_count > VB_MAXFULLCONVERSIONS)