Enable extension GL_ARB_fragment_coord_convention in FS. Speculative fix for Intel Win7 buildbots.
Unreviewed.
git-svn-id: http://skia.googlecode.com/svn/trunk@6032 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/gl/GrGLShaderBuilder.cpp b/src/gpu/gl/GrGLShaderBuilder.cpp
index 93a848d..6be31cd 100644
--- a/src/gpu/gl/GrGLShaderBuilder.cpp
+++ b/src/gpu/gl/GrGLShaderBuilder.cpp
@@ -288,7 +288,8 @@
const char* GrGLShaderBuilder::fragmentPosition() {
if (fContext.caps().fragCoordConventionsSupport()) {
if (!fSetupFragPosition) {
- this->fFSHeader.append("layout(origin_upper_left) in vec4 gl_FragCoord;\n");
+ fFSHeader.printf("#extension GL_ARB_fragment_coord_convention: enable\n");
+ fFSHeader.append("layout(origin_upper_left) in vec4 gl_FragCoord;\n");
fSetupFragPosition = true;
}
return "gl_FragCoord";