Module: wine Branch: master Commit: 60ea760945179e2c71cbcfb1e5742592a2e6a2fe URL: http://source.winehq.org/git/wine.git/?a=commit;h=60ea760945179e2c71cbcfb1e5...
Author: Stefan Dösinger stefan@codeweavers.com Date: Wed Jan 10 11:31:18 2007 +0100
wined3d: Avoid false resultarg warnings.
---
dlls/wined3d/state.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c index f62db54..0e323cf 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -1725,6 +1725,10 @@ static void tex_bumpenvloffset(DWORD sta static void tex_resultarg(DWORD state, IWineD3DStateBlockImpl *stateblock) { 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) { ERR("WINED3DTSS_RESULTARG not supported yet\n"); }