Skip to content

Commit

Permalink
properly update the backend name when using auto backend
Browse files Browse the repository at this point in the history
  • Loading branch information
nmwsharp committed Mar 29, 2024
1 parent 6b394f2 commit 3f52c5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/render/initialize_backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void initializeRenderEngine(std::string backend) {

#ifdef POLYSCOPE_BACKEND_OPENGL3_GLFW_ENABLED
// First try GLFW, if available
backend = "openGL3_glfw";
engineBackendName = "openGL3_glfw";
try {
backend_openGL3::initializeRenderEngine_glfw();
initSucces = true;
Expand All @@ -64,7 +64,7 @@ void initializeRenderEngine(std::string backend) {

#ifdef POLYSCOPE_BACKEND_OPENGL3_EGL_ENABLED
// Then, try EGL if available
backend = "openGL3_egl";
engineBackendName = "openGL3_egl";
try {
backend_openGL3::initializeRenderEngine_egl();
initSucces = true;
Expand Down

0 comments on commit 3f52c5e

Please sign in to comment.