mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
bug 911199 - Bug fix on GL version comparaison causing crash on devices supporting OpenGL ES 3.0 - r=bjacob
This commit is contained in:
parent
056669a343
commit
774f7766c8
@ -254,14 +254,16 @@ public:
|
||||
MOZ_ASSERT(mProfile != ContextProfile::Unknown, "unknown context profile");
|
||||
MOZ_ASSERT(mVersion != 0, "unknown context version");
|
||||
|
||||
if (profile == ContextProfile::OpenGL) {
|
||||
return (profile == ContextProfile::OpenGLCore ||
|
||||
profile == ContextProfile::OpenGLCompatibility) &&
|
||||
version >= mVersion;
|
||||
if (version > mVersion) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return profile == mProfile &&
|
||||
version >= mVersion;
|
||||
if (profile == ContextProfile::OpenGL) {
|
||||
return profile == ContextProfile::OpenGLCore ||
|
||||
profile == ContextProfile::OpenGLCompatibility;
|
||||
}
|
||||
|
||||
return profile == mProfile;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user