From ac17c805f7c4f5f4887831f3696f60327beeb6b6 Mon Sep 17 00:00:00 2001 From: shuiyu1123 Date: Sat, 11 Jul 2026 17:33:51 +0800 Subject: [PATCH] fix: standalone game_test, Engine lib D3D11 state conflict noted - game_test: standalone D3D11 (no Engine linkage) - Known: Engine static lib initialization interferes with D3D11 - raw3d_test: proven working 3D demo - game_test: crashes when linked against Engine --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 67d49fe..9b732ad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,7 +69,7 @@ target_link_libraries(ly_interpreter Engine d3d11 dxgi d3dcompiler ole32 oleaut3 set_target_properties(ly_interpreter PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/build ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/build) add_executable(scene_test WIN32 Demo/game_test.c) -target_link_libraries(scene_test Engine d3d11 dxgi d3dcompiler ole32 oleaut32 uuid gdi32 user32 kernel32 winmm) +target_link_libraries(scene_test d3d11 dxgi d3dcompiler ole32 oleaut32 uuid gdi32 user32 kernel32 winmm) set_target_properties(scene_test PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/build ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/build) add_executable(light_test WIN32 Demo/light_test.c)