Fix amalgamated build on osx.

This commit is contained in:
Relintai 2024-09-14 21:38:18 +02:00
parent c94d218250
commit 5bb3d5bccf
3 changed files with 14 additions and 0 deletions

View File

@ -177,7 +177,11 @@
// Vertex arrays are not supported on ES2/WebGL1 unless Emscripten which uses an extension
#ifndef IMGUI_IMPL_OPENGL_ES2
#idndef __APPLE__
#define IMGUI_IMPL_OPENGL_USE_VERTEX_ARRAY
#endif
#elif defined(__EMSCRIPTEN__)
#define IMGUI_IMPL_OPENGL_USE_VERTEX_ARRAY
#define glBindVertexArray glBindVertexArrayOES

View File

@ -30,8 +30,12 @@
#ifdef SFW_3RD_IMPL
#define STB_TRUETYPE_IMPLEMENTATION
#define STB_RECT_PACK_IMPLEMENTATION
#define IMGUI_DISABLE_STB_RECT_PACK_IMPLEMENTATION
#endif //SFW_3RD_IMPL
{{FILE:sfw/render_gui/imstb_rectpack.h}}
{{FILE:sfw/render_core/3rd_stb_truetype.h}}
#ifdef SFW_3RD_IMPL

View File

@ -1007,6 +1007,12 @@ static void stb_textedit_replace(ImGuiInputTextState* str, STB_TexteditState* st
//--STRIP
{{FILE:sfw/render_gui/imgui_tables.cpp}}
//#define STBRP_STATIC
//#define STBRP_ASSERT(x) do { IM_ASSERT(x); } while (0)
//#define STBRP_SORT ImQsort
//#define STB_RECT_PACK_IMPLEMENTATION
//{{F I L E:sfw/render_gui/imstb_rectpack.h}}
//--STRIP
//#include "imgui.h"
//#include "imgui_internal.h"