From 3c9a10f7b74468a3e6aaf8998f396cca37b1b319 Mon Sep 17 00:00:00 2001 From: Sergey Kosarevsky Date: Sat, 7 Dec 2024 15:17:58 -0800 Subject: [PATCH] igl | third-party | Remove redundant line from the NanoVG patch Reviewed By: nlutsenko Differential Revision: D66782718 fbshipit-source-id: ff8c8dbed8c479d784d1b3f652164554b55aa75a --- third-party/deps/patches/nanovg.patch | 111 +++++++++++++------------- 1 file changed, 55 insertions(+), 56 deletions(-) diff --git a/third-party/deps/patches/nanovg.patch b/third-party/deps/patches/nanovg.patch index 04725a2366..24976d9567 100644 --- a/third-party/deps/patches/nanovg.patch +++ b/third-party/deps/patches/nanovg.patch @@ -1,56 +1,55 @@ -Binary files ./example/.DS_Store and ./example_new/.DS_Store differ -diff --exclude=.git --exclude=.hg -rupN ./example/demo.c ./example_new/demo.c ---- ./example/demo.c 2024-11-30 17:10:38 -+++ ./example_new/demo.c 2024-11-30 17:09:45 -@@ -5,9 +5,7 @@ - #ifdef NANOVG_GLEW - # include - #endif --#include - #include "nanovg.h" --#define STB_IMAGE_WRITE_IMPLEMENTATION - #include "stb_image_write.h" - - -@@ -1212,6 +1210,7 @@ static void flipHorizontal(unsigned char* image, int w - } - } - -+#if 0 - void saveScreenShot(int w, int h, int premult, const char* name) - { - unsigned char* image = (unsigned char*)malloc(w*h*4); -@@ -1226,3 +1225,4 @@ void saveScreenShot(int w, int h, int premult, const c - stbi_write_png(name, w, h, 4, image, w*4); - free(image); - } -+#endif -diff --exclude=.git --exclude=.hg -rupN ./example/perf.c ./example_new/perf.c ---- ./example/perf.c 2024-11-30 17:10:39 -+++ ./example_new/perf.c 2024-11-30 17:10:04 -@@ -5,7 +5,6 @@ - #ifdef NANOVG_GLEW - # include - #endif --#include - #include "nanovg.h" - - #ifdef _MSC_VER -@@ -38,7 +37,7 @@ void initGPUTimer(GPUtimer* timer) - glGenQueries(GPU_QUERY_COUNT, timer->queries); - }*/ - } -- -+#if 0 - void startGPUTimer(GPUtimer* timer) - { - if (!timer->supported) -@@ -72,7 +71,7 @@ int stopGPUTimer(GPUtimer* timer, float* times, int ma - } - return n; - } -- -+#endif - - void initGraph(PerfGraph* fps, int style, const char* name) - { +diff --exclude=.git --exclude=.hg -rupN ./example/demo.c ./example_new/demo.c +--- ./example/demo.c 2024-11-30 17:10:38 ++++ ./example_new/demo.c 2024-11-30 17:09:45 +@@ -5,9 +5,7 @@ + #ifdef NANOVG_GLEW + # include + #endif +-#include + #include "nanovg.h" +-#define STB_IMAGE_WRITE_IMPLEMENTATION + #include "stb_image_write.h" + + +@@ -1212,6 +1210,7 @@ static void flipHorizontal(unsigned char* image, int w + } + } + ++#if 0 + void saveScreenShot(int w, int h, int premult, const char* name) + { + unsigned char* image = (unsigned char*)malloc(w*h*4); +@@ -1226,3 +1225,4 @@ void saveScreenShot(int w, int h, int premult, const c + stbi_write_png(name, w, h, 4, image, w*4); + free(image); + } ++#endif +diff --exclude=.git --exclude=.hg -rupN ./example/perf.c ./example_new/perf.c +--- ./example/perf.c 2024-11-30 17:10:39 ++++ ./example_new/perf.c 2024-11-30 17:10:04 +@@ -5,7 +5,6 @@ + #ifdef NANOVG_GLEW + # include + #endif +-#include + #include "nanovg.h" + + #ifdef _MSC_VER +@@ -38,7 +37,7 @@ void initGPUTimer(GPUtimer* timer) + glGenQueries(GPU_QUERY_COUNT, timer->queries); + }*/ + } +- ++#if 0 + void startGPUTimer(GPUtimer* timer) + { + if (!timer->supported) +@@ -72,7 +71,7 @@ int stopGPUTimer(GPUtimer* timer, float* times, int ma + } + return n; + } +- ++#endif + + void initGraph(PerfGraph* fps, int style, const char* name) + {