this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

updated comment

+1 -1
+1 -1
demos/nanovg/main.c
··· 12 12 /* Create a GPU_Image from a NanoVG Framebuffer */ 13 13 GPU_Image* generateFBO(NVGcontext* _vg, const float _w, const float _h, void (*draw)(NVGcontext*, const float, const float, const float, const float)) { 14 14 // GPU_FlushBlitBuffer(); // call GPU_FlushBlitBuffer if you're doing this in the middle of SDL_gpu blitting 15 - NVGLUframebuffer* fb = nvgluCreateFramebuffer(_vg, _w, _h, NVG_IMAGE_NODELETE); // IMPORTANT: don't run nvgluDeleteFramebuffer 15 + NVGLUframebuffer* fb = nvgluCreateFramebuffer(_vg, _w, _h, NVG_IMAGE_NODELETE); // IMPORTANT: NVG_IMAGE_NODELETE allows us to run nvgluDeleteFramebuffer without freeing the GPU_Image data 16 16 nvgluBindFramebuffer(fb); 17 17 glViewport(0, 0, _w, _h); 18 18 glClearColor(0, 0, 0, 0);