mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-25 00:06:16 +00:00
Activate textures for postprocessing material under direct3d
This commit is contained in:
parent
7625336f1b
commit
66d4a90892
1 changed files with 2 additions and 2 deletions
|
@ -648,7 +648,7 @@ bool CDriverD3D::setupMaterial(CMaterial &mat)
|
||||||
// Must separate texture setup and texture activation in 2 "for"...
|
// Must separate texture setup and texture activation in 2 "for"...
|
||||||
// because setupTexture() may disable all stage.
|
// because setupTexture() may disable all stage.
|
||||||
|
|
||||||
if (matShader == CMaterial::Normal)
|
if (matShader == CMaterial::Normal || matShader == CMaterial::PostProcessing)
|
||||||
{
|
{
|
||||||
uint stage;
|
uint stage;
|
||||||
for(stage=0 ; stage<maxTexture; ++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.
|
// Don't do it also for Specular because the EnvFunction and the TexGen may be special.
|
||||||
{
|
{
|
||||||
H_AUTO_D3D(CDriverD3D_setupMaterial_normalShaderActivateTextures)
|
H_AUTO_D3D(CDriverD3D_setupMaterial_normalShaderActivateTextures)
|
||||||
if(matShader == CMaterial::Normal)
|
if (matShader == CMaterial::Normal || matShader == CMaterial::PostProcessing)
|
||||||
{
|
{
|
||||||
uint stage;
|
uint stage;
|
||||||
for(stage=0 ; stage<maxTexture; ++stage)
|
for(stage=0 ; stage<maxTexture; ++stage)
|
||||||
|
|
Loading…
Reference in a new issue