changeset 5523:5053f94940f4

Fix RT-33821: Regression in D3D lights caused by RT33560. Reviewed by Kevin, Chien
author Thor Johannesson <thor.johannesson@oracle.com>
date Thu, 24 Oct 2013 15:11:49 -0700
parents 9b4749e397e9
children ebd1bf49f546
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	Thu Oct 24 16:40:38 2013 -0400
+++ b/modules/graphics/src/main/native-prism-d3d/D3DPhongShader.cc	Thu Oct 24 15:11:49 2013 -0700
@@ -119,7 +119,7 @@
 HRESULT D3DPhongShader::setPixelShader(int numLights, int specularMode,
         int bumpMode, int selfIllumMode) {
 
-    if (numLights < 0 || numLights >= maxLights
+    if (numLights < 0 || numLights > maxLights
             || selfIllumMode < 0 || selfIllumMode >= SelfIlllumTotal
             || bumpMode < 0 || bumpMode >= BumpTotal
             || specularMode < 0 || specularMode >= SpecTotal) {