diff options
Diffstat (limited to 'src/gpu/gl/GrGLCaps.cpp')
-rw-r--r-- | src/gpu/gl/GrGLCaps.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp index 52c480ad3f..646961b39b 100644 --- a/src/gpu/gl/GrGLCaps.cpp +++ b/src/gpu/gl/GrGLCaps.cpp @@ -36,6 +36,7 @@ void GrGLCaps::reset() { fTextureRedSupport = false; fImagingSupport = false; fTwoFormatLimit = false; + fFragCoordsConventionSupport = false; } GrGLCaps::GrGLCaps(const GrGLCaps& caps) { @@ -65,6 +66,7 @@ GrGLCaps& GrGLCaps::operator = (const GrGLCaps& caps) { fTextureRedSupport = caps.fTextureRedSupport; fImagingSupport = caps.fImagingSupport; fTwoFormatLimit = caps.fTwoFormatLimit; + fFragCoordsConventionSupport = caps.fFragCoordsConventionSupport; return *this; } @@ -158,6 +160,9 @@ void GrGLCaps::init(const GrGLContextInfo& ctxInfo) { // can change based on which render target is bound fTwoFormatLimit = kES2_GrGLBinding == binding; + fFragCoordsConventionSupport = ctxInfo.glslGeneration() >= k150_GrGLSLGeneration || + ctxInfo.hasExtension("GL_ARB_fragment_coord_conventions"); + this->initFSAASupport(ctxInfo); this->initStencilFormats(ctxInfo); } |