From cc71a1e268ad4cb2af464bd887c2f47c665b5e8a Mon Sep 17 00:00:00 2001 From: vinsentli Date: Thu, 19 Dec 2024 14:15:41 +0800 Subject: [PATCH] igl | third-party | Fix nanovg.py --- third-party/deps/patches/nanovg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/third-party/deps/patches/nanovg.py b/third-party/deps/patches/nanovg.py index f8ae719d8a..7fc0be88a7 100755 --- a/third-party/deps/patches/nanovg.py +++ b/third-party/deps/patches/nanovg.py @@ -9,13 +9,14 @@ file = Path(os.path.join(lib_dir, "example/demo.c")) file.write_text(file.read_text() - .replace("#include ", "") + .replace("#include ", "#include ") .replace("#define STB_IMAGE_WRITE_IMPLEMENTATION", "") .replace("glReadPixels(0, 0, w, h, GL_RGBA, GL_UNSIGNED_BYTE, image);", "// glReadPixels(0, 0, w, h, GL_RGBA, GL_UNSIGNED_BYTE, image);") ) file = Path(os.path.join(lib_dir, "example/perf.c")) file.write_text(file.read_text() + .replace("#include ", "") .replace("void startGPUTimer(GPUtimer* timer)", ("""#if 0 void startGPUTimer(GPUtimer* timer)