Merge pull request #1401 from lemondrops/master
Fix OpenGL shaders not working when built with CMake
This commit is contained in:
@@ -50,8 +50,9 @@ if(DISCORD)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(OPENGL)
|
if(OPENGL)
|
||||||
# PUBLIC due to config.c
|
|
||||||
target_compile_definitions(ui PUBLIC USE_OPENGL)
|
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)
|
target_sources(ui PRIVATE glad.c win_opengl.c win_opengl_glslp.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user