wined3d: Add an extensionless STATE_INDEXBUFFER handler.
This commit is contained in:
parent
66612e2626
commit
3f79ba3019
|
@ -60,6 +60,11 @@ static void state_undefined(DWORD state, IWineD3DStateBlockImpl *stateblock, str
|
|||
ERR("Undefined state.\n");
|
||||
}
|
||||
|
||||
static void state_nop(DWORD state, IWineD3DStateBlockImpl *stateblock, struct wined3d_context *context)
|
||||
{
|
||||
TRACE("%s: nop in current pipe config.\n", debug_d3dstate(state));
|
||||
}
|
||||
|
||||
static void state_fillmode(DWORD state, IWineD3DStateBlockImpl *stateblock, struct wined3d_context *context)
|
||||
{
|
||||
WINED3DFILLMODE Value = stateblock->renderState[WINED3DRS_FILLMODE];
|
||||
|
@ -4923,6 +4928,7 @@ const struct StateEntryTemplate misc_state_template[] = {
|
|||
|
||||
{ STATE_VIEWPORT, { STATE_VIEWPORT, viewport_miscpart }, WINED3D_GL_EXT_NONE },
|
||||
{ STATE_INDEXBUFFER, { STATE_INDEXBUFFER, indexbuffer }, ARB_VERTEX_BUFFER_OBJECT },
|
||||
{ STATE_INDEXBUFFER, { STATE_INDEXBUFFER, state_nop }, WINED3D_GL_EXT_NONE },
|
||||
{ STATE_RENDER(WINED3DRS_ANTIALIAS), { STATE_RENDER(WINED3DRS_ANTIALIAS), state_antialias }, WINED3D_GL_EXT_NONE },
|
||||
{ STATE_RENDER(WINED3DRS_TEXTUREPERSPECTIVE), { STATE_RENDER(WINED3DRS_TEXTUREPERSPECTIVE), state_perspective }, WINED3D_GL_EXT_NONE },
|
||||
{ STATE_RENDER(WINED3DRS_ZENABLE), { STATE_RENDER(WINED3DRS_ZENABLE), state_zenable }, WINED3D_GL_EXT_NONE },
|
||||
|
|
Loading…
Reference in New Issue