I'll try this I guess idk.
All checks were successful
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 1m40s
All checks were successful
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 1m40s
This commit is contained in:
7
main.cpp
7
main.cpp
@@ -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);
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user