aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-07 13:03:03 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-07 13:03:03 +0000
commitfcdb083420c623e1f8ef6560654d82f04df77160 (patch)
tree2d99080980d2eeed6440e9385732ce55aa382cf6 /src/gpu/gl
parent75b3c9633cb9a594dab0ccf51dab1e694c149a18 (diff)
Fix dumb bug in checking gl interface validation against binding from gl version string
git-svn-id: http://skia.googlecode.com/svn/trunk@4202 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/gl')
-rw-r--r--src/gpu/gl/GrGLContextInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLContextInfo.cpp b/src/gpu/gl/GrGLContextInfo.cpp
index 45368fe298..9802e65985 100644
--- a/src/gpu/gl/GrGLContextInfo.cpp
+++ b/src/gpu/gl/GrGLContextInfo.cpp
@@ -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();