Bug 924264 - Fix WebGL.getUniform on non-first array entry in uniform arrays - r=bjacob

This commit is contained in:
Jukka Jylänki 2013-10-09 10:35:12 -04:00
parent 70d5179b10
commit 6dbe7560f5

View File

@ -234,11 +234,6 @@ WebGLProgram::GetUniformInfoForMappedIdentifier(const nsACString& name) {
mUniformInfoMap->Get(mutableName, &info);
// we don't check if that Get failed, as if it did, it left info with default values
// if there is a bracket and it's not [0], then we're not an array, we're just an entry in an array
if (hadBracketPart && !bracketPart.EqualsLiteral("[0]")) {
info.isArray = false;
info.arraySize = 1;
}
return info;
}