wined3d: Do not upload to the vbo if there's nothing to do.
This commit is contained in:
parent
a224fdb14e
commit
fe3ebb3c42
|
@ -155,7 +155,7 @@ static HRESULT WINAPI IWineD3DIndexBufferImpl_Unlock(IWineD3DIndexBuffer *iface)
|
||||||
TRACE("(%p)\n", This);
|
TRACE("(%p)\n", This);
|
||||||
|
|
||||||
/* For now load in unlock */
|
/* 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;
|
IWineD3DDeviceImpl *device = This->resource.wineD3DDevice;
|
||||||
ENTER_GL();
|
ENTER_GL();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue