Commit f63ce1c4 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Inherit from the proper state table in atifs.

parent 0fa0df78
......@@ -727,7 +727,7 @@ struct StateEntry ATIFSStateTable[STATE_HIGHEST + 1];
static void init_state_table() {
unsigned int i;
const DWORD rep = STATE_TEXTURESTAGE(0, WINED3DTSS_COLOROP);
memcpy(ATIFSStateTable, FFPStateTable, sizeof(ATIFSStateTable));
memcpy(ATIFSStateTable, arb_program_shader_backend.StateTable, sizeof(ATIFSStateTable));
for(i = 0; i < MAX_TEXTURES; i++) {
ATIFSStateTable[STATE_TEXTURESTAGE(i, WINED3DTSS_COLOROP)].apply = set_tex_op_atifs;
......@@ -835,8 +835,8 @@ static BOOL shader_atifs_dirty_const(IWineD3DDevice *iface) {
}
static void shader_atifs_load_init(void) {
init_state_table();
arb_program_shader_backend.shader_dll_load_init();
init_state_table();
}
static void shader_atifs_get_caps(WINED3DDEVTYPE devtype, WineD3D_GL_Info *gl_info, struct shader_caps *caps) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment