Fix OpenGL shaders not working when built with CMake

This commit is contained in:
Alexander Babikov
2021-04-26 04:16:50 +05:00
parent 92f05439e2
commit 9d1b2af59e

View File

@@ -50,8 +50,9 @@ if(DISCORD)
endif()
if(OPENGL)
# PUBLIC due to config.c
target_compile_definitions(ui PUBLIC USE_OPENGL)
target_compile_definitions(plat PRIVATE USE_OPENGL)
target_sources(ui PRIVATE glad.c win_opengl.c win_opengl_glslp.c)
endif()