diff --git a/nanovg.nimble b/nanovg.nimble index 48fd0dc..2132670 100644 --- a/nanovg.nimble +++ b/nanovg.nimble @@ -12,7 +12,7 @@ requires "nim >= 1.0.6", "https://github.com/jyapayne/nimterop#93c8372", "opengl >= 1.2.6", "sdl2#head", - "https://github.com/jyapayne/nim-glew#head", + "https://github.com/jyapayne/nim-glew#head", "https://github.com/jyapayne/nim-glfw#head" import os diff --git a/src/nanovg/nanovg.nim b/src/nanovg/nanovg.nim index e8aa351..16fc38d 100644 --- a/src/nanovg/nanovg.nim +++ b/src/nanovg/nanovg.nim @@ -45,6 +45,7 @@ src/*.c #define NANOVG_GL_H #define NANOVG_GL_USE_UNIFORMBUFFER #define NANOVG_GL3 +#define NANOVG_GL3_IMPLEMENTATION #define GLFW_INCLUDE_GLEXT #ifdef __APPLE__ # define GLFW_INCLUDE_GLCOREARB @@ -57,6 +58,7 @@ src/*.c let newContents = contents.replace("#define NANOVG_GL_H", """ #define NANOVG_GL_H #define NANOVG_GL_USE_UNIFORMBUFFER +#define NANOVG_GL3_IMPLEMENTATION #define NANOVG_GL3 #include #include "nanovg.h" @@ -117,7 +119,7 @@ elif defined(windows): # Compile in any common source code -cCompile(srcDir/"src/*.c") +cCompile(srcDir/"src"/"*.c") # Use cPlugin() to make any symbol changes cPluginPath(symbolPluginPath)