Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Clear the second texture stage explicitly

  • Loading branch information
slouken committed Aug 28, 2006
1 parent e8ac0cb commit 4f0b1705ad839bbeb7adb23ed93dc7004ca00bd3
Showing with 5 additions and 0 deletions.
  1. +5 −0 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;
}

0 comments on commit 4f0b170

Please sign in to comment.