Commit e7b96340 by Jamie Madill Committed by Commit Bot

Fix uint indices WebGL test to draw something.

This test was specifying a draw with two indices instead of six. This wasn't producing any error on most configurations, but on Android it was producing a driver error that was only visible in Debug. BUG=angleproject:2086 Change-Id: I7c3cee4cc10d6c37e3bac8ed9fbc16ecb2cb9e63 Reviewed-on: https://chromium-review.googlesource.com/546539 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarYuly Novikov <ynovikov@chromium.org>
parent 8033165b
...@@ -294,7 +294,7 @@ TEST_P(WebGLCompatibilityTest, EnableExtensionUintIndices) ...@@ -294,7 +294,7 @@ TEST_P(WebGLCompatibilityTest, EnableExtensionUintIndices)
"void main() { gl_FragColor = vec4(0, 1, 0, 1); }") "void main() { gl_FragColor = vec4(0, 1, 0, 1); }")
glUseProgram(program.get()); glUseProgram(program.get());
glDrawElements(GL_TRIANGLES, 2, GL_UNSIGNED_INT, nullptr); glDrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_INT, nullptr);
EXPECT_GL_ERROR(GL_INVALID_ENUM); EXPECT_GL_ERROR(GL_INVALID_ENUM);
if (extensionRequestable("GL_OES_element_index_uint")) if (extensionRequestable("GL_OES_element_index_uint"))
...@@ -303,7 +303,7 @@ TEST_P(WebGLCompatibilityTest, EnableExtensionUintIndices) ...@@ -303,7 +303,7 @@ TEST_P(WebGLCompatibilityTest, EnableExtensionUintIndices)
EXPECT_GL_NO_ERROR(); EXPECT_GL_NO_ERROR();
EXPECT_TRUE(extensionEnabled("GL_OES_element_index_uint")); EXPECT_TRUE(extensionEnabled("GL_OES_element_index_uint"));
glDrawElements(GL_TRIANGLES, 2, GL_UNSIGNED_INT, nullptr); glDrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_INT, nullptr);
EXPECT_GL_NO_ERROR(); EXPECT_GL_NO_ERROR();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment