mirror of
https://github.com/minetest/irrlicht.git
synced 2024-12-25 18:20:30 +01:00
OpenGL3: Version asserts
This commit is contained in:
parent
2e477a07d1
commit
44f7c22bbf
@ -29,9 +29,7 @@ namespace video {
|
||||
|
||||
void COpenGL3Driver::initFeatures() {
|
||||
assert (Version.Spec == OpenGLSpec::Compat);
|
||||
assert (Version.Major >= 3);
|
||||
if (Version.Major == 3)
|
||||
assert (Version.Minor >= 2);
|
||||
assert (isVersionAtLeast(3, 2));
|
||||
initExtensionsNew();
|
||||
|
||||
// COGLESCoreExtensionHandler::Feature
|
||||
|
@ -23,6 +23,7 @@ namespace video {
|
||||
}
|
||||
|
||||
void COpenGLES2Driver::initFeatures() {
|
||||
assert (Version.Spec == OpenGLSpec::ES);
|
||||
assert (Version.Major >= 2);
|
||||
if (Version.Major >= 3)
|
||||
initExtensionsNew();
|
||||
|
Loading…
Reference in New Issue
Block a user