Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 8224a58

Browse files
aleino-nvCommit Bot
authored andcommitted
Normalize fragment color in Texture2DIntegerTestES3
The sampler returns colors with components in the range 0-255. Bug: chromium:963595 Change-Id: I7030ab9da6e0803e3aaf8aef4691ce7276636b10 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1617778 Reviewed-by: Kimmo Kinnunen FI <[email protected]> Reviewed-by: Jamie Madill <[email protected]> Commit-Queue: Jamie Madill <[email protected]>
1 parent 5093ba6 commit 8224a58

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/tests/gl_tests/TextureTest.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@ class Texture2DIntegerTestES3 : public Texture2DTest
11731173
"out vec4 fragColor;\n"
11741174
"void main()\n"
11751175
"{\n"
1176-
" fragColor = vec4(texture(tex, texcoord));\n"
1176+
" fragColor = vec4(texture(tex, texcoord))/255.0;\n"
11771177
"}\n";
11781178
}
11791179
};
@@ -4551,9 +4551,6 @@ TEST_P(Texture2DTestES3, MinificationWithSamplerNoMipmapping)
45514551
// texture is output.
45524552
TEST_P(Texture2DIntegerTestES3, IntegerTextureNonZeroBaseLevel)
45534553
{
4554-
// Flaky on Windows OpenGL drivers. http://crbug.com/963595
4555-
ANGLE_SKIP_TEST_IF(IsOpenGL() && IsWindows());
4556-
45574554
glActiveTexture(GL_TEXTURE0);
45584555
glBindTexture(GL_TEXTURE_2D, mTexture2D);
45594556
int width = getWindowWidth();

0 commit comments

Comments
 (0)