Bug 1170845 - Remove WebGL2() exclusion on instanced draw divisor check. r=jgilbert

This commit is contained in:
Dan Glastonbury 2015-07-22 15:00:44 +10:00
parent 10e288eb10
commit e7b450b988

View File

@ -25,11 +25,7 @@ static const int MAX_DRAW_CALLS_SINCE_FLUSH = 100;
bool
WebGLContext::DrawInstanced_check(const char* info)
{
// This restriction was removed in GLES3, so WebGL2 shouldn't have it.
if (!IsWebGL2() &&
IsExtensionEnabled(WebGLExtensionID::ANGLE_instanced_arrays) &&
!mBufferFetchingHasPerVertex)
{
if (!mBufferFetchingHasPerVertex) {
/* http://www.khronos.org/registry/gles/extensions/ANGLE/ANGLE_instanced_arrays.txt
* If all of the enabled vertex attribute arrays that are bound to active
* generic attributes in the program have a non-zero divisor, the draw