Check for graphics driver support.
Some checks failed
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m44s
Some checks failed
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m44s
This commit is contained in:
6
main.cpp
6
main.cpp
@@ -4,6 +4,7 @@
|
||||
#include <Colors.hpp>
|
||||
#include <chrono>
|
||||
#include <J3ML/LinearAlgebra/Vector2.hpp>
|
||||
#include <JGL/logger/logger.h>
|
||||
|
||||
using J3ML::LinearAlgebra::Vector2;
|
||||
using namespace JGL;
|
||||
@@ -99,8 +100,11 @@ class JGLDemoWindow : public ReWindow::RWindow
|
||||
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);
|
||||
}
|
||||
JGL::InitTextEngine();
|
||||
JGL::Update(getSize());
|
||||
J3D::Init(getSize(), 90, 100);
|
||||
|
Reference in New Issue
Block a user