Fix dumb bug in checking gl interface validation against binding from gl version...
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 7 Jun 2012 13:03:03 +0000 (13:03 +0000)
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 7 Jun 2012 13:03:03 +0000 (13:03 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@4202 2bbb7eff-a529-9590-31e7-b0007b416f81

src/gpu/gl/GrGLContextInfo.cpp

index 45368fe..9802e65 100644 (file)
@@ -55,7 +55,7 @@ bool GrGLContextInfo::initialize(const GrGLInterface* interface) {
         const char* ver = reinterpret_cast<const char*>(verUByte);
         GrGLBinding binding = GrGLGetBindingInUseFromString(ver);
 
-        if (!interface->validate(fBindingInUse)) {
+        if (interface->validate(binding)) {
 
             fInterface = interface;
             interface->ref();