wined3d: return D3DERR_INVALIDCALL when calling BeginStateBlock and

already recording.
This commit is contained in:
H. Verbeet 2005-12-03 18:04:26 +01:00 committed by Alexandre Julliard
parent 2b1747ccda
commit 4880c586d8
1 changed files with 5 additions and 0 deletions

View File

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