Commit 4880c586 authored by H. Verbeet's avatar H. Verbeet Committed by Alexandre Julliard

wined3d: return D3DERR_INVALIDCALL when calling BeginStateBlock and

already recording.
parent 2b1747cc
......@@ -4493,6 +4493,11 @@ HRESULT WINAPI IWineD3DDeviceImpl_BeginStateBlock(IWineD3DDevice *iface) {
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment