wined3d: Don't drop VBOs for full buffer reloading without conversion.

This commit is contained in:
Stefan Dösinger 2011-02-06 23:28:11 +01:00 committed by Alexandre Julliard
parent 629f382a80
commit 46d879eef6
1 changed files with 1 additions and 1 deletions

View File

@ -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)