Fix broken build in indexed draw buffers tests.
authorMika Isojärvi <misojarvi@google.com>
Mon, 16 Mar 2015 20:48:44 +0000 (13:48 -0700)
committerMika Isojärvi <misojarvi@google.com>
Mon, 16 Mar 2015 20:48:44 +0000 (13:48 -0700)
Change-Id: I2635f5b43296a8e5fe1928dbec8c00dae0fcbaa7

modules/gles31/functional/es31fDrawBuffersIndexedTests.cpp

index ceccb05..f851c70 100644 (file)
@@ -1294,7 +1294,7 @@ TextureFormat getRandomFormat (de::Random& rng)
                GL_RGBA32UI
        };
 
-       return glu::mapGLInternalFormat(de::getSizedArrayElement(glFormats, rng.getUint32() % DE_LENGTH_OF_ARRAY(glFormats)));
+       return glu::mapGLInternalFormat(de::getArrayElement(glFormats, rng.getUint32() % DE_LENGTH_OF_ARRAY(glFormats)));
 }
 
 void genRandomTest (de::Random& rng, BlendState& preCommon, BlendState& postCommon, vector<DrawBufferInfo>& drawBuffers, int maxDrawBufferCount)