MipmapTestES3's SetUp() doesn't conform to standards
Change-Id: I57dba132cd08bb1b3db2cda2fe0c31b97746e1a4
Reviewed-on: https://chromium-review.googlesource.com/241380
Tested-by: Austin Kinross <aukinros@microsoft.com>
Reviewed-by: Nico Weber <thakis@chromium.org>
diff --git a/tests/angle_tests/MipmapTest.cpp b/tests/angle_tests/MipmapTest.cpp
index 8c31165..842e96a 100644
--- a/tests/angle_tests/MipmapTest.cpp
+++ b/tests/angle_tests/MipmapTest.cpp
@@ -187,9 +187,11 @@
ASSERT_GL_NO_ERROR();
+ // Don't put "#version ..." on its own line. See [cpp]p1:
+ // "If there are sequences of preprocessing tokens within the list of arguments that
+ // would otherwise act as preprocessing directives, the behavior is undefined"
const std::string vertexShaderSource = SHADER_SOURCE
- (
- #version 300 es\n
+ ( #version 300 es\n
precision highp float;
in vec4 position;
out vec2 texcoord;
@@ -204,8 +206,7 @@
);
const std::string fragmentShaderSourceArray = SHADER_SOURCE
- (
- #version 300 es\n
+ ( #version 300 es\n
precision highp float;
uniform sampler2DArray tex;
uniform int slice;