Module: wine Branch: master Commit: fe3ebb3c42a122b37beaee8e433890fc2c14553d URL: http://source.winehq.org/git/wine.git/?a=commit;h=fe3ebb3c42a122b37beaee8e43...
Author: Stefan Dösinger stefan@codeweavers.com Date: Thu Apr 19 18:11:36 2007 +0200
wined3d: Do not upload to the vbo if there's nothing to do.
---
dlls/wined3d/indexbuffer.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/indexbuffer.c b/dlls/wined3d/indexbuffer.c index f64d6aa..18cfce7 100644 --- a/dlls/wined3d/indexbuffer.c +++ b/dlls/wined3d/indexbuffer.c @@ -155,7 +155,7 @@ static HRESULT WINAPI IWineD3DIndexBufferImpl_Unlock(IWineD3DIndexBuffer *iface) TRACE("(%p)\n", This);
/* For now load in unlock */ - if(locks == 0 && This->vbo) { + if(locks == 0 && This->vbo && (This->dirtyend - This->dirtystart) > 0) { IWineD3DDeviceImpl *device = This->resource.wineD3DDevice; ENTER_GL();