From 75aeb30b798d29670f76bb3f64ed22a50e696364 Mon Sep 17 00:00:00 2001 From: aap Date: Mon, 20 Apr 2020 20:25:53 +0200 Subject: [PATCH] some bad copy&paste bug --- src/d3d/d3drender.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d/d3drender.cpp b/src/d3d/d3drender.cpp index 8f1b6f9..7dfa8ec 100644 --- a/src/d3d/d3drender.cpp +++ b/src/d3d/d3drender.cpp @@ -319,7 +319,7 @@ lightingCB_Shader(Atomic *atomic) if(atomic->geometry->flags & rw::Geometry::LIGHT){ ((World*)engine->currentWorld)->enumerateLights(atomic, &lightData); d3ddevice->SetVertexShaderConstantF(VSLOC_ambLight, (float*)&lightData.ambient, 1); - if(!(atomic->geometry->flags & rw::Geometry::PRELIT) == 0){ + if((atomic->geometry->flags & rw::Geometry::NORMALS) == 0){ // Get rid of lights that need normals when we don't have any lightData.numDirectionals = 0; lightData.numLocals = 0;