Commit 19d48db1 by Olli Etuaho

Fix incorrect delete function call in TextureTest

The test must call glDeleteBuffers to delete a buffer instead of glDeleteTextures. This was one reason behind the texture tests failing on the GL backend. BUG=angleproject:1261 TEST=angle_end2end_tests Change-Id: I67042f6948146f3c3fca9e01231b0c4935a6f08d Reviewed-on: https://chromium-review.googlesource.com/321611Tested-by: 's avatarOlli Etuaho <oetuaho@nvidia.com> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 8000a99e
...@@ -811,7 +811,7 @@ TEST_P(Texture2DTest, TexStorageWithPBO) ...@@ -811,7 +811,7 @@ TEST_P(Texture2DTest, TexStorageWithPBO)
glUniform1i(mTexture2DUniformLocation, 0); glUniform1i(mTexture2DUniformLocation, 0);
drawQuad(mProgram, "position", 0.5f); drawQuad(mProgram, "position", 0.5f);
glDeleteTextures(1, &tex2D); glDeleteTextures(1, &tex2D);
glDeleteTextures(1, &pbo); glDeleteBuffers(1, &pbo);
EXPECT_GL_NO_ERROR(); EXPECT_GL_NO_ERROR();
EXPECT_PIXEL_EQ(3 * width / 4, 3 * height / 4, 0, 0, 0, 255); EXPECT_PIXEL_EQ(3 * width / 4, 3 * height / 4, 0, 0, 0, 255);
EXPECT_PIXEL_EQ(width / 4, height / 4, 255, 0, 0, 255); EXPECT_PIXEL_EQ(width / 4, height / 4, 255, 0, 0, 255);
......
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