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
This commit is contained in:
bsalomon@google.com 2012-06-07 13:03:03 +00:00
parent 75b3c9633c
commit fcdb083420

View 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();