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

wined3d: Avoid false resultarg warnings.

parent 3d14118f
...@@ -1725,6 +1725,10 @@ static void tex_bumpenvloffset(DWORD state, IWineD3DStateBlockImpl *stateblock) ...@@ -1725,6 +1725,10 @@ static void tex_bumpenvloffset(DWORD state, IWineD3DStateBlockImpl *stateblock)
static void tex_resultarg(DWORD state, IWineD3DStateBlockImpl *stateblock) { static void tex_resultarg(DWORD state, IWineD3DStateBlockImpl *stateblock) {
DWORD stage = (state - STATE_TEXTURESTAGE(0, 0)) / WINED3D_HIGHEST_TEXTURE_STATE; DWORD stage = (state - STATE_TEXTURESTAGE(0, 0)) / WINED3D_HIGHEST_TEXTURE_STATE;
if(stage >= GL_LIMITS(texture_stages)) {
return;
}
if(stateblock->textureState[stage][WINED3DTSS_RESULTARG] != D3DTA_CURRENT) { if(stateblock->textureState[stage][WINED3DTSS_RESULTARG] != D3DTA_CURRENT) {
ERR("WINED3DTSS_RESULTARG not supported yet\n"); ERR("WINED3DTSS_RESULTARG not supported yet\n");
} }
......
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