Mercurial > sdl-ios-xcode
changeset 1991:3863ba81c1d6
Clear the second texture stage explicitly
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 28 Aug 2006 17:35:15 +0000 |
parents | 7b573c59cb1f |
children | 7387e0514595 |
files | src/video/win32/SDL_d3drender.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/win32/SDL_d3drender.c Mon Aug 28 17:34:50 2006 +0000 +++ b/src/video/win32/SDL_d3drender.c Mon Aug 28 17:35:15 2006 +0000 @@ -400,6 +400,11 @@ D3DTA_TEXTURE); IDirect3DDevice9_SetTextureStageState(data->device, 0, D3DTSS_ALPHAARG2, D3DTA_DIFFUSE); + /* Disable second texture stage, since we're done */ + IDirect3DDevice9_SetTextureStageState(data->device, 1, D3DTSS_COLOROP, + D3DTOP_DISABLE); + IDirect3DDevice9_SetTextureStageState(data->device, 1, D3DTSS_ALPHAOP, + D3DTOP_DISABLE); return renderer; }