Module: wine Branch: refs/heads/master Commit: 4880c586d8013e7271c744f581eb19905d90e0f0 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=4880c586d8013e7271c744f5...
Author: H. Verbeet hverbeet@gmail.com Date: Sat Dec 3 18:04:26 2005 +0100
wined3d: return D3DERR_INVALIDCALL when calling BeginStateBlock and already recording.
---
dlls/wined3d/device.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 9b8dc5c..185bca7 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -4493,6 +4493,11 @@ HRESULT WINAPI IWineD3DDeviceImpl_BeginS IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface; IWineD3DStateBlockImpl *object; TRACE("(%p)", This); + + if (This->isRecordingState) { + return D3DERR_INVALIDCALL; + } + object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IWineD3DStateBlockImpl)); if (NULL == object ) { FIXME("(%p)Error allocating memory for stateblock\n", This);