A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
fix(build): link context tests with WebGL 2 symbols
yhh95bfe93fda5d
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txtindex da1fa5359..62a3ac09f 100644--- a/tests/CMakeLists.txt+++ b/tests/CMakeLists.txt@@ -96,6 +96,11 @@ add_executable(test_tilemap_context${CMAKE_SOURCE_DIR}/src/esengine/renderer/rhi/GfxDevice.cpp)target_link_libraries(test_tilemap_context PRIVATE esengine)+if(EMSCRIPTEN)+ # The context's WebGL overload pulls in GLDevice even though this harness+ # initializes a mock device. Link its WebGL 2 symbols in both sanitizer modes.+ target_link_options(test_tilemap_context PRIVATE -sMIN_WEBGL_VERSION=2 -sMAX_WEBGL_VERSION=2)+endif()add_test(NAME test_tilemap_context COMMAND test_tilemap_context)# AOT: compiled TypeScript against a real Registry. The .c is generated bydiff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjsindex 18a2b8c8a..07dc918dd 100644--- a/tools/releaseNotes.mjs+++ b/tools/releaseNotes.mjs@@ -28,6 +28,8 @@ export const NOTES_FLOOR = 'v0.65.0';* the reader recognises anyway.*/export const NOTED = {+ 'fix(build): link context tests with WebGL 2 symbols':+ { internal: 'The context regression harness pulls in the WebGL overload even with a mock backend; its normal and sanitizer links require the same WebGL 2 symbols as the engine. Shipping engine behavior is unchanged.' },'fix(animation): preserve elapsed phase and coalesce crossed events':{ note: 'Sprite playback catches up without replaying a time backlog.' },'fix(animation): preserve listener snapshots and callback ownership':