mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
ddraw: Fix error checking in IDirect3DExecuteBufferImpl_Execute().
This commit is contained in:
parent
ec7fc36862
commit
3176d936f9
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ IDirect3DExecuteBufferImpl_Execute(IDirect3DExecuteBufferImpl *This,
|
||||||
|
|
||||||
TRACE("(%08x,%08x)\n", ci->u1.dlstLightStateType, ci->u2.dwArg[0]);
|
TRACE("(%08x,%08x)\n", ci->u1.dlstLightStateType, ci->u2.dwArg[0]);
|
||||||
|
|
||||||
if (!ci->u1.dlstLightStateType && (ci->u1.dlstLightStateType > D3DLIGHTSTATE_COLORVERTEX))
|
if (!ci->u1.dlstLightStateType || (ci->u1.dlstLightStateType > D3DLIGHTSTATE_COLORVERTEX))
|
||||||
ERR("Unexpected Light State Type\n");
|
ERR("Unexpected Light State Type\n");
|
||||||
else if (ci->u1.dlstLightStateType == D3DLIGHTSTATE_MATERIAL /* 1 */) {
|
else if (ci->u1.dlstLightStateType == D3DLIGHTSTATE_MATERIAL /* 1 */) {
|
||||||
DWORD matHandle = ci->u2.dwArg[0];
|
DWORD matHandle = ci->u2.dwArg[0];
|
||||||
|
|
Loading…
Reference in a new issue