quick fix for r13108
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 16 Jan 2014 17:51:07 +0000 (17:51 +0000)
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 16 Jan 2014 17:51:07 +0000 (17:51 +0000)
BUG=skia:2042
NOTREECHECKS
NOTRY
TBR=robertphillips@google.com

Review URL: https://codereview.chromium.org/135313004

git-svn-id: http://skia.googlecode.com/svn/trunk@13109 2bbb7eff-a529-9590-31e7-b0007b416f81

src/gpu/gl/GrGLContext.cpp

index fad885b..2eb4893 100644 (file)
@@ -48,9 +48,11 @@ bool GrGLContextInfo::initialize(const GrGLInterface* interface) {
 
             fIsChromium = GrGLIsChromiumFromRendererString(renderer);
 
+            // This must be done before calling GrGLCaps::init()
+            fStandard = interface->fStandard;
+
             fGLCaps->init(*this, interface);
 
-            fStandard = interface->fStandard;
             return true;
         }
     }