diff options
Diffstat (limited to 'WebCore/platform/graphics/gpu/TexShader.cpp')
-rw-r--r-- | WebCore/platform/graphics/gpu/TexShader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/WebCore/platform/graphics/gpu/TexShader.cpp b/WebCore/platform/graphics/gpu/TexShader.cpp index ba3ecdd..01f4306 100644 --- a/WebCore/platform/graphics/gpu/TexShader.cpp +++ b/WebCore/platform/graphics/gpu/TexShader.cpp @@ -57,7 +57,9 @@ PassOwnPtr<TexShader> TexShader::create(GraphicsContext3D* context) " gl_Position = vec4(matrix * position, 1.0);\n" "}\n"; static const char* fragmentShaderSource = + "#ifdef GL_ES\n" "precision mediump float;\n" + "#endif\n" "uniform sampler2D sampler;\n" "uniform float alpha;\n" "varying vec3 texCoord;\n" |