# HG changeset patch # User Sam Lantinga # Date 1156786515 0 # Node ID 3863ba81c1d6b439e53d3f1d0425558c62e33118 # Parent 7b573c59cb1f036e85e6995268b378d6f4ad0ee6 Clear the second texture stage explicitly diff -r 7b573c59cb1f -r 3863ba81c1d6 src/video/win32/SDL_d3drender.c --- 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; }