diff options
Diffstat (limited to 'src/tests/gl_tests/VertexAttributeTest.cpp')
-rw-r--r-- | src/tests/gl_tests/VertexAttributeTest.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tests/gl_tests/VertexAttributeTest.cpp b/src/tests/gl_tests/VertexAttributeTest.cpp index 2443ac8395..a11d77d40c 100644 --- a/src/tests/gl_tests/VertexAttributeTest.cpp +++ b/src/tests/gl_tests/VertexAttributeTest.cpp @@ -1832,11 +1832,11 @@ TEST_P(VertexAttributeTestES3, DrawWithUnalignedData) constexpr char kVS[] = R"(#version 300 es precision highp float; in highp vec4 a_position; -in highp ivec2 a_ColorTest; +in highp vec2 a_ColorTest; out highp vec2 v_colorTest; void main() { - v_colorTest = vec2(a_ColorTest); + v_colorTest = a_ColorTest; gl_Position = a_position; })"; @@ -1846,7 +1846,8 @@ in highp vec2 v_colorTest; out vec4 fragColor; void main() { - if(v_colorTest.x > 0.5) { + // The input value is 0x01000000 / 0x7FFFFFFF + if(abs(v_colorTest.x - 0.0078125) < 0.001) { fragColor = vec4(0.0, 1.0, 0.0, 1.0); } else { fragColor = vec4(1.0, 0.0, 0.0, 1.0); |