Explicitly resolve template in DrawIndirect
authorDaniel Stone <daniels@collabora.com>
Sat, 6 May 2017 16:40:18 +0000 (17:40 +0100)
committerDaniel Stone <daniels@collabora.com>
Tue, 9 May 2017 14:42:35 +0000 (15:42 +0100)
As with all the other uses of BindingPointCheck, explicitly pass 'api'
for template resolution, fixing a compile error seen on G++7, which
could not infer the correct template resolution.

Components: OpenGL

VK-GL-CTS issue: 408

Change-Id: I04e96bcc1d56493c21595ad07e4813e344b4e64d

external/openglcts/modules/gles31/es31cDrawIndirectTests.cpp

index 72e54eb..63662c7 100644 (file)
@@ -1744,7 +1744,7 @@ struct CBufferBindRange : public DrawIndirectBase
                result.sub_result(DataCompare(dataRef, dataWidth, dataHeight, dataTest, dataWidth, dataHeight));
 
                glBindBuffer(GL_DRAW_INDIRECT_BUFFER, 0);
-               result.sub_result(BindingPointCheck(0));
+               result.sub_result(BindingPointCheck<api>(0));
 
                glBindBufferRange(GL_DRAW_INDIRECT_BUFFER, 0, _buffer, 0, dataTest.size() * sizeof(unsigned int) / 4);
                result.sub_result(BindingPointCheck<api>(_buffer));
@@ -1829,7 +1829,7 @@ struct CBufferBindBase : public DrawIndirectBase
 
                GetBufferSubData<api>(GL_DRAW_INDIRECT_BUFFER, 0, dataTest.size() * sizeof(unsigned int), &dataTest[0]);
                result.sub_result(DataCompare(dataRef1, dataWidth, dataHeight, dataTest, dataWidth, dataHeight));
-               result.sub_result(BindingPointCheck(_buffers[0]));
+               result.sub_result(BindingPointCheck<api>(_buffers[0]));
 
                glBindBufferBase(GL_DRAW_INDIRECT_BUFFER, 0, _buffers[1]);
                result.sub_result(BindingPointCheck<api>(_buffers[1]));