From 2bd62ed5216ab038157c503c6c1bb971769c4914 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 28 Aug 2006 17:35:15 +0000 Subject: [PATCH] Clear the second texture stage explicitly --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402038 --- src/video/win32/SDL_d3drender.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/video/win32/SDL_d3drender.c b/src/video/win32/SDL_d3drender.c index 67520f267..9cdb24e61 100644 --- a/src/video/win32/SDL_d3drender.c +++ b/src/video/win32/SDL_d3drender.c @@ -400,6 +400,11 @@ D3D_CreateRenderer(SDL_Window * window, Uint32 flags) 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; }