mirror of https://github.com/encounter/SDL.git
cmake: testshader needs -sLEGACY_GL_EMULATION on Emscripten
This commit is contained in:
parent
55384db8a6
commit
a71e558d85
|
@ -235,6 +235,9 @@ if(OPENGL_FOUND)
|
||||||
target_link_libraries(testgl2 ${OPENGL_gl_LIBRARY})
|
target_link_libraries(testgl2 ${OPENGL_gl_LIBRARY})
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
if(EMSCRIPTEN)
|
||||||
|
target_link_libraries(testshader -sLEGACY_GL_EMULATION)
|
||||||
|
endif()
|
||||||
|
|
||||||
file(GLOB RESOURCE_FILES *.bmp *.wav *.hex moose.dat utf8.txt)
|
file(GLOB RESOURCE_FILES *.bmp *.wav *.hex moose.dat utf8.txt)
|
||||||
file(COPY ${RESOURCE_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
file(COPY ${RESOURCE_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
||||||
|
|
Loading…
Reference in New Issue