Bug 800612 - 1/2 - fix WebGLElementArrayCache bug and increase test repetitions to catch this bug - r=jgilbert

This commit is contained in:
Benoit Jacob 2012-11-09 16:42:21 -05:00
parent 26cf47c5f0
commit f9d7ada72b

View File

@ -333,6 +333,9 @@ template<typename T>
void WebGLElementArrayCacheTree<T>::Invalidate(size_t firstByte, size_t lastByte)
{
lastByte = NS_MIN(lastByte, mNumLeaves * sElementsPerLeaf * sizeof(T) - 1);
if (firstByte > lastByte) {
return;
}
size_t firstLeaf = LeafForByte(firstByte);
size_t lastLeaf = LeafForByte(lastByte);