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)