memononen/nanovg

nvgCreateGL failed

ltsAhMe opened this issue · 0 comments

`void nanoVGinit(){
printf("Start init nanovg\n");
struct NVGcontext* vg = nvgCreateGL2(NVG_ANTIALIAS | NVG_STENCIL_STROKES);;

printf("nvg init\n");
if (vg == NULL) {
    printf("Error initializing NanoVG.\n");
    exit(EXIT_FAILURE);
}
printf("NANOVG INIT\n");

}`

After running:

Start init nanovg

Process finished with exit code -1073741819 (0xC0000005)

include :
#include <GL/glew.h> #include <glfw3.h> #include "nanovg/nanovg.h" #define NANOVG_GL2_IMPLEMENTATION #include "nanovg/nanovg_gl.h" #include "nanovg/nanovg_gl_utils.h"