Clear the second texture stage explicitly
authorSam Lantinga <slouken@libsdl.org>
Mon, 28 Aug 2006 17:35:15 +0000
changeset 19913863ba81c1d6
parent 1990 7b573c59cb1f
child 1992 7387e0514595
Clear the second texture stage explicitly
src/video/win32/SDL_d3drender.c
     1.1 --- a/src/video/win32/SDL_d3drender.c	Mon Aug 28 17:34:50 2006 +0000
     1.2 +++ b/src/video/win32/SDL_d3drender.c	Mon Aug 28 17:35:15 2006 +0000
     1.3 @@ -400,6 +400,11 @@
     1.4                                            D3DTA_TEXTURE);
     1.5      IDirect3DDevice9_SetTextureStageState(data->device, 0, D3DTSS_ALPHAARG2,
     1.6                                            D3DTA_DIFFUSE);
     1.7 +    /* Disable second texture stage, since we're done */
     1.8 +    IDirect3DDevice9_SetTextureStageState(data->device, 1, D3DTSS_COLOROP,
     1.9 +                                          D3DTOP_DISABLE);
    1.10 +    IDirect3DDevice9_SetTextureStageState(data->device, 1, D3DTSS_ALPHAOP,
    1.11 +                                          D3DTOP_DISABLE);
    1.12  
    1.13      return renderer;
    1.14  }