-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
igl | third-party | Remove redundant line from the NanoVG patch
Reviewed By: nlutsenko Differential Revision: D66782718 fbshipit-source-id: ff8c8dbed8c479d784d1b3f652164554b55aa75a
- Loading branch information
1 parent
c17f485
commit 3c9a10f
Showing
1 changed file
with
55 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <GL/glew.h> | ||
#endif | ||
-#include <GLFW/glfw3.h> | ||
#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 <GL/glew.h> | ||
#endif | ||
-#include <GLFW/glfw3.h> | ||
#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 <GL/glew.h> | ||
#endif | ||
-#include <GLFW/glfw3.h> | ||
#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 <GL/glew.h> | ||
#endif | ||
-#include <GLFW/glfw3.h> | ||
#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) | ||
{ |