Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(720)

Unified Diff: src/gpu/gl/GrGLShaderBuilder.cpp

Issue 12533007: Use vertex array objects on core profiles. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Use vertex array objects on core profiles. Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/gl/GrGLShaderBuilder.cpp
===================================================================
--- src/gpu/gl/GrGLShaderBuilder.cpp (revision 8015)
+++ src/gpu/gl/GrGLShaderBuilder.cpp (working copy)
@@ -264,7 +264,9 @@
#if 1
if (fCtxInfo.caps().fragCoordConventionsSupport()) {
if (!fSetupFragPosition) {
- fFSHeader.append("#extension GL_ARB_fragment_coord_conventions: require\n");
+ if (fCtxInfo.glslGeneration() < k150_GrGLSLGeneration) {
+ fFSHeader.append("#extension GL_ARB_fragment_coord_conventions: require\n");
+ }
fFSInputs.push_back().set(kVec4f_GrSLType,
GrGLShaderVar::kIn_TypeModifier,
"gl_FragCoord",

Powered by Google App Engine
This is Rietveld 408576698