changeset 5985:8a5c6817206d

RT-34820: Self Illumination map issues of PhongMaterial Summary: Wrong shader was selected in case of zero lights.
author vadim
date Fri, 13 Dec 2013 19:22:18 +0400
parents 1332ba0d7f6a
children dd01cc258204
files modules/graphics/src/main/native-prism-d3d/D3DPhongShader.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/native-prism-d3d/D3DPhongShader.cc	Fri Dec 13 13:43:12 2013 +0100
+++ b/modules/graphics/src/main/native-prism-d3d/D3DPhongShader.cc	Fri Dec 13 19:22:18 2013 +0400
@@ -134,7 +134,7 @@
 
     IDirect3DPixelShader9 *pshd = NULL;
     if (numLights == 0) {
-        pshd = selfIllumMode ? pixelShader0 : pixelShader0_si;
+        pshd = selfIllumMode ? pixelShader0_si : pixelShader0;
     } else {
         pshd = pixelShaders[selfIllumMode][bumpMode][specularMode][numLights - 1];
     }