Explorar o código

fixed compilation when 'NK_INCLUDE_VERTEX_BUFFER_OUTPUT' macro isn`t defined
but 'NK_INCLUDE_FONT_BAKING' is

Yaroslav Tsarko %!s(int64=9) %!d(string=hai) anos
pai
achega
de91bd6e03
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      nuklear.h

+ 2 - 0
nuklear.h

@@ -9838,7 +9838,9 @@ nk_font_atlas_end(struct nk_font_atlas *atlas, nk_handle texture,
     }
     for (i = 0; i < atlas->font_num; ++i) {
         atlas->fonts[i]->texture = texture;
+#ifdef NK_INCLUDE_VERTEX_BUFFER_OUTPUT
         atlas->fonts[i]->handle.texture = texture;
+#endif
     }
 
     atlas->alloc.free(atlas->alloc.userdata, atlas->pixel);