Missing one case type == GE_LIGHTTYPE_UNKNOWN

This commit is contained in:
raven02 committed 2013-08-20 19:43:26 +08:00
1 parent 1981195c5b
commit 4899f67fa1
1 file changed
+1 -1
+1 -1
View File
@@ -236,7 +236,7 @@ void GenerateVertexShader(int prim, char *buffer, bool useHWTransform) {
if (type != GE_LIGHTTYPE_DIRECTIONAL)
WRITE(p, "uniform mediump vec3 u_lightatt%i;\n", i);
if (type == GE_LIGHTTYPE_SPOT) {
if (type == GE_LIGHTTYPE_SPOT || type == GE_LIGHTTYPE_UNKNOWN) {
WRITE(p, "uniform mediump float u_lightangle%i;\n", i);
WRITE(p, "uniform mediump float u_lightspotCoef%i;\n", i);
}