diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c index d210b857829..2e4a6942aca 100644 --- a/dlls/wined3d/drawprim.c +++ b/dlls/wined3d/drawprim.c @@ -93,6 +93,7 @@ static DWORD primitiveToGl(WINED3DPRIMITIVETYPE PrimitiveType, /* Ensure the appropriate material states are set up - only change state if really required */ static void init_materials(IWineD3DDevice *iface, BOOL isDiffuseSupplied) { + IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface; if (This->tracking_color == NEEDS_TRACKING && isDiffuseSupplied) { @@ -120,12 +121,6 @@ static void init_materials(IWineD3DDevice *iface, BOOL isDiffuseSupplied) { } } -static const GLfloat invymat[16] = { - 1.0f, 0.0f, 0.0f, 0.0f, - 0.0f, -1.0f, 0.0f, 0.0f, - 0.0f, 0.0f, 1.0f, 0.0f, - 0.0f, 0.0f, 0.0f, 1.0f}; - static BOOL fixed_get_input( BYTE usage, BYTE usage_idx, unsigned int* regnum) {