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:
parent
75b3c9633c
commit
fcdb083420
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user