Commit e8c86274 by Austin Kinross Committed by Jamie Madill

MipmapTestES3's SetUp() doesn't conform to standards

Change-Id: I57dba132cd08bb1b3db2cda2fe0c31b97746e1a4 Reviewed-on: https://chromium-review.googlesource.com/241380Tested-by: 's avatarAustin Kinross <aukinros@microsoft.com> Reviewed-by: 's avatarNico Weber <thakis@chromium.org>
parent 773c5180
...@@ -187,9 +187,11 @@ protected: ...@@ -187,9 +187,11 @@ protected:
ASSERT_GL_NO_ERROR(); 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 const std::string vertexShaderSource = SHADER_SOURCE
( ( #version 300 es\n
#version 300 es\n
precision highp float; precision highp float;
in vec4 position; in vec4 position;
out vec2 texcoord; out vec2 texcoord;
...@@ -204,8 +206,7 @@ protected: ...@@ -204,8 +206,7 @@ protected:
); );
const std::string fragmentShaderSourceArray = SHADER_SOURCE const std::string fragmentShaderSourceArray = SHADER_SOURCE
( ( #version 300 es\n
#version 300 es\n
precision highp float; precision highp float;
uniform sampler2DArray tex; uniform sampler2DArray tex;
uniform int slice; uniform int slice;
......
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