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