Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Clear the second texture stage explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 28, 2006
1 parent e8ac0cb commit 4f0b170
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/video/win32/SDL_d3drender.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4f0b170

Please sign in to comment.