mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
wined3d: return D3DERR_INVALIDCALL when calling BeginStateBlock and
already recording.
This commit is contained in:
parent
2b1747ccda
commit
4880c586d8
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue