Activate textures for postprocessing material under direct3d

This commit is contained in:
kaetemi 2013-06-19 21:16:13 +02:00
parent cfb9827b2c
commit 0d1e405d3e

View file

@ -648,7 +648,7 @@ bool CDriverD3D::setupMaterial(CMaterial &mat)
// Must separate texture setup and texture activation in 2 "for"...
// because setupTexture() may disable all stage.
if (matShader == CMaterial::Normal)
if (matShader == CMaterial::Normal || matShader == CMaterial::PostProcessing)
{
uint stage;
for(stage=0 ; stage<maxTexture; ++stage)
@ -668,7 +668,7 @@ bool CDriverD3D::setupMaterial(CMaterial &mat)
// Don't do it also for Specular because the EnvFunction and the TexGen may be special.
{
H_AUTO_D3D(CDriverD3D_setupMaterial_normalShaderActivateTextures)
if(matShader == CMaterial::Normal)
if (matShader == CMaterial::Normal || matShader == CMaterial::PostProcessing)
{
uint stage;
for(stage=0 ; stage<maxTexture; ++stage)