Commit a71e558d85ddd2fe0d20ca18a1c1c54955485ca7

Anonymous Maarten 2022-11-01T13:09:52

cmake: testshader needs -sLEGACY_GL_EMULATION on Emscripten

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index f358b03..c608f47 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -235,6 +235,9 @@ if(OPENGL_FOUND)
         target_link_libraries(testgl2 ${OPENGL_gl_LIBRARY})
     endif()
 endif()
+if(EMSCRIPTEN)
+    target_link_libraries(testshader -sLEGACY_GL_EMULATION)
+endif()
 
 file(GLOB RESOURCE_FILES *.bmp *.wav *.hex moose.dat utf8.txt)
 file(COPY ${RESOURCE_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})