diff --git a/dlls/wined3d/palette.c b/dlls/wined3d/palette.c index 9f2900c4e5b..43c942f944b 100644 --- a/dlls/wined3d/palette.c +++ b/dlls/wined3d/palette.c @@ -135,7 +135,7 @@ static HRESULT WINAPI IWineD3DPaletteImpl_SetEntries(IWineD3DPalette *iface, DW /* If the palette is attached to the render target, update all render targets */ for(res = This->wineD3DDevice->resources; res != NULL; res=res->next) { - if(IWineD3DResource_GetType(res->resource) == D3DRTYPE_SURFACE) { + if(IWineD3DResource_GetType(res->resource) == WINED3DRTYPE_SURFACE) { IWineD3DSurfaceImpl *impl = (IWineD3DSurfaceImpl *) res->resource; if(impl->palette == This) IWineD3DSurface_RealizePalette( (IWineD3DSurface *) res->resource);