OpenGL3: Version asserts

This commit is contained in:
numzero 2023-04-16 01:03:33 +03:00 committed by sfan5
parent 2e477a07d1
commit 44f7c22bbf
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -23,6 +23,7 @@ namespace video {
}
void COpenGLES2Driver::initFeatures() {
assert (Version.Spec == OpenGLSpec::ES);
assert (Version.Major >= 2);
if (Version.Major >= 3)
initExtensionsNew();