hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/core/application.cpp
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2025-08-14 00:28:27 +0200
committerhachem <im@hachem.wtf>2025-08-14 00:28:27 +0200
commit9671d5e54484b8bce261207d08ff15053ae24e48 (patch)
tree0bd7018fd818eb16069f27102b9e489d5369bcf6 /src/core/application.cpp
parent0262eeea8762cdeb14c98d22473ebf0fd6b37bf9 (diff)
feat: ability to switch render API
Diffstat (limited to 'src/core/application.cpp')
-rw-r--r--src/core/application.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/application.cpp b/src/core/application.cpp
index f878c71..b05e2b5 100644
--- a/src/core/application.cpp
+++ b/src/core/application.cpp
@@ -1,4 +1,5 @@
#include "application.h"
+
#include "rendering/renderer.h"
#include "states/config_state.h"
@@ -101,6 +102,8 @@ namespace Donut
void Application::on_init()
{
Logger::init();
+
+ RendererAPI::set_api(RendererAPI::API::OpenGL);
Renderer::init();
Renderer::on_window_resize(1280, 720);