Merge pull request #1401 from lemondrops/master

Fix OpenGL shaders not working when built with CMake
This commit is contained in:
Miran Grča
2021-04-26 01:32:31 +02:00
committed by GitHub

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()