I'll try this I guess idk.
All checks were successful
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 1m40s

This commit is contained in:
2024-10-10 19:34:34 -04:00
parent 39c7c7ac0d
commit dbdb4f7ec1
2 changed files with 4 additions and 7 deletions

View File

@@ -104,10 +104,9 @@ public:
void initGL() {
camera = new Camera;
gladLoadGL();
if (!JGL::MeetsRequirements()) {
Logger::Fatal("The graphics driver does not meet the minimum requirements to run this program.");
exit(-1);
}
if (!JGL::MeetsRequirements())
Logger::Warning("The graphics driver does not meet the minimum requirements to run this program.");
JGL::InitTextEngine();
JGL::Update(getSize());
J3D::Init(getSize(), 90, 100);

View File

@@ -37,9 +37,7 @@ namespace JGL {
bool MeetsRequirements() {
if (!GLAD_GL_VERSION_2_1)
return false;
if (!GLAD_GL_EXT_framebuffer_object)
return false;
if (!GLAD_GL_ARB_framebuffer_object)
if (!GLAD_GL_EXT_framebuffer_object && !GLAD_GL_ARB_framebuffer_object)
return false;
return true;
}