wined3d: Move WINED3DRS_STIPPLEDALPHA to the state table.
This commit is contained in:
parent
312be46415
commit
2710be0327
|
@ -3428,6 +3428,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
|
|||
case WINED3DRS_SLOPESCALEDEPTHBIAS :
|
||||
case WINED3DRS_DEPTHBIAS :
|
||||
case WINED3DRS_TEXTUREPERSPECTIVE :
|
||||
case WINED3DRS_STIPPLEDALPHA :
|
||||
StateTable[STATE_RENDER(State)].apply(STATE_RENDER(State), This->stateBlock);
|
||||
break;
|
||||
|
||||
|
@ -3438,12 +3439,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
|
|||
return WINED3DERR_INVALIDCALL;
|
||||
}
|
||||
|
||||
case WINED3DRS_STIPPLEDALPHA :
|
||||
{
|
||||
if (Value)
|
||||
ERR(" Stippled Alpha not supported yet.\n");
|
||||
break;
|
||||
}
|
||||
case WINED3DRS_ANTIALIAS :
|
||||
{
|
||||
if (Value)
|
||||
|
|
|
@ -1154,6 +1154,12 @@ static void state_perspective(DWORD state, IWineD3DStateBlockImpl *stateblock) {
|
|||
}
|
||||
}
|
||||
|
||||
static void state_stippledalpha(DWORD state, IWineD3DStateBlockImpl *stateblock) {
|
||||
TRACE("Stub\n");
|
||||
if (stateblock->renderState[WINED3DRS_STIPPLEDALPHA])
|
||||
ERR(" Stippled Alpha not supported yet.\n");
|
||||
}
|
||||
|
||||
const struct StateEntry StateTable[] =
|
||||
{
|
||||
/* State name representative, apply function */
|
||||
|
@ -1190,7 +1196,7 @@ const struct StateEntry StateTable[] =
|
|||
{ /* 30, WINED3DRS_ZVISIBLE */ 0 /* Not supported according to the msdn */, state_nogl },
|
||||
{ /* 31, WINED3DRS_SUBPIXEL */ STATE_RENDER(WINED3DRS_SUBPIXEL), state_unknown },
|
||||
{ /* 32, WINED3DRS_SUBPIXELX */ STATE_RENDER(WINED3DRS_SUBPIXELX), state_unknown },
|
||||
{ /* 33, WINED3DRS_STIPPLEDALPHA */ STATE_RENDER(WINED3DRS_STIPPLEDALPHA), state_unknown },
|
||||
{ /* 33, WINED3DRS_STIPPLEDALPHA */ STATE_RENDER(WINED3DRS_STIPPLEDALPHA), state_stippledalpha },
|
||||
{ /* 34, WINED3DRS_FOGCOLOR */ STATE_RENDER(WINED3DRS_FOGCOLOR), state_fogcolor },
|
||||
{ /* 35, WINED3DRS_FOGTABLEMODE */ STATE_RENDER(WINED3DRS_FOGENABLE), state_fog },
|
||||
{ /* 36, WINED3DRS_FOGSTART */ STATE_RENDER(WINED3DRS_FOGENABLE), state_fog },
|
||||
|
|
Loading…
Reference in New Issue