Browse Source

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

Yaroslav Tsarko 9 năm trước cách đây
mục cha
commit
de91bd6e03
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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);