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

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

Issue 1201623003: fix for calling bindFragDataLocation on OpenGL 2.1 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « src/gpu/gl/GrGLCaps.h ('k') | src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLCaps.cpp
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp
index c7dc862864df178bb79ec0b2a622dc3e683be07f..b23619d8b6d600677431f14f5145867d48b45098 100644
--- a/src/gpu/gl/GrGLCaps.cpp
+++ b/src/gpu/gl/GrGLCaps.cpp
@@ -47,6 +47,7 @@ GrGLCaps::GrGLCaps(const GrContextOptions& contextOptions,
fUseNonVBOVertexAndIndexDynamicData = false;
fIsCoreProfile = false;
fFullClearIsFree = false;
+ fBindFragDataLocationSupport = false;
fReadPixelsSupportedCache.reset();
@@ -270,6 +271,10 @@ void GrGLCaps::init(const GrContextOptions& contextOptions,
fMultisampleDisableSupport = false;
}
+ if (kGL_GrGLStandard == standard && version >= GR_GL_VER(3, 0)) {
+ fBindFragDataLocationSupport = true;
+ }
+
/**************************************************************************
* GrShaderCaps fields
**************************************************************************/
« no previous file with comments | « src/gpu/gl/GrGLCaps.h ('k') | src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698