Fixed: Wrong variable used to compute array length

This commit is contained in:
kervala 2013-09-22 13:23:03 +02:00
parent 21f3ec55ab
commit 40e65be2f5

View file

@ -1502,7 +1502,7 @@ CTextureCube *CDriverGL::getSpecularCubeMap(uint exp)
{ {
1.f, 4.f, 8.f, 24.f, 48.f, 128.f, 256.f, 511.f 1.f, 4.f, 8.f, 24.f, 48.f, 128.f, 256.f, 511.f
}; };
const uint numCubeMap = sizeof(expToCubeMap) / sizeof(float); const uint numCubeMap = sizeof(cubeMapExp) / sizeof(float);
static bool tableBuilt = false; static bool tableBuilt = false;
if (!tableBuilt) if (!tableBuilt)