Index: src/gpu/gl/GrGLContext.cpp |
diff --git a/src/gpu/gl/GrGLContext.cpp b/src/gpu/gl/GrGLContext.cpp |
index d384b4ee6f2b8a7c44f64e7e727108a398209f0d..1d0a01fc8725c0400eae99d95e4c3b821c97e29f 100644 |
--- a/src/gpu/gl/GrGLContext.cpp |
+++ b/src/gpu/gl/GrGLContext.cpp |
@@ -14,6 +14,7 @@ GrGLContextInfo& GrGLContextInfo::operator= (const GrGLContextInfo& ctxInfo) { |
fGLSLGeneration = ctxInfo.fGLSLGeneration; |
fVendor = ctxInfo.fVendor; |
fExtensions = ctxInfo.fExtensions; |
+ fIsMesa = ctxInfo.fIsMesa; |
*fGLCaps = *ctxInfo.fGLCaps.get(); |
return *this; |
} |
@@ -36,6 +37,9 @@ bool GrGLContextInfo::initialize(const GrGLInterface* interface) { |
fGLSLGeneration = GrGetGLSLGeneration(fBindingInUse, interface); |
fVendor = GrGLGetVendor(interface); |
+ |
+ fIsMesa = GrGLIsMesaFromVersionString(ver); |
+ |
fGLCaps->init(*this, interface); |
return true; |
} |
@@ -52,6 +56,7 @@ void GrGLContextInfo::reset() { |
fGLVersion = GR_GL_VER(0, 0); |
fGLSLGeneration = static_cast<GrGLSLGeneration>(0); |
fVendor = kOther_GrGLVendor; |
+ fIsMesa = false; |
fExtensions.reset(); |
fGLCaps->reset(); |
} |