mirror of
https://github.com/minetest/irrlicht.git
synced 2025-03-06 20:49:24 +01:00
OpenGL3: Version asserts
This commit is contained in:
parent
2e477a07d1
commit
44f7c22bbf
2 changed files with 2 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue