From d82f08e98dcee364767198821e1f04a13d323ca3 Mon Sep 17 00:00:00 2001 From: RSDuck Date: Thu, 13 Oct 2022 14:24:02 +0200 Subject: [PATCH] make the OpenGL renderer work again that was stupid --- src/CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 11c48f00..0a494064 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -65,6 +65,8 @@ if (ENABLE_OGLRENDERER) GPU3D_OpenGL.cpp GPU3D_OpenGL_shaders.h OpenGLSupport.cpp) + + target_compile_definitions(core PUBLIC OGLRENDERER_ENABLED) endif() if (ENABLE_JIT) @@ -125,10 +127,6 @@ if (ENABLE_JIT) endif() endif() -if (ENABLE_OPENGLRENDERER) - target_compile_definitions(core PUBLIC OGLRENDERER_ENABLED) -endif() - if (WIN32) target_link_libraries(core PRIVATE ole32 comctl32 ws2_32) elseif(NOT APPLE)