diff --git a/src/xenia/ui/imgui_drawer.cc b/src/xenia/ui/imgui_drawer.cc index 5feb3fc4f..257fa78ed 100644 --- a/src/xenia/ui/imgui_drawer.cc +++ b/src/xenia/ui/imgui_drawer.cc @@ -16,9 +16,6 @@ namespace xe { namespace ui { -constexpr uint32_t kMaxDrawVertices = 64 * 1024; -constexpr uint32_t kMaxDrawIndices = 64 * 1024; - // File: 'ProggyTiny.ttf' (35656 bytes) // Exported using binary_to_compressed_c.cpp const char kProggyTinyCompressedDataBase85[10950 + 1] = @@ -27,10 +24,7 @@ const char kProggyTinyCompressedDataBase85[10950 + 1] = ImGuiDrawer* ImGuiDrawer::global_drawer_ = nullptr; ImGuiDrawer::ImGuiDrawer(xe::ui::Window* window) - : window_(window), - graphics_context_(window->context()), - vertices_(kMaxDrawVertices * sizeof(ImmediateVertex)), - indices_(kMaxDrawIndices * sizeof(uint16_t)) { + : window_(window), graphics_context_(window->context()) { assert_null(global_drawer_); global_drawer_ = this; diff --git a/src/xenia/ui/imgui_drawer.h b/src/xenia/ui/imgui_drawer.h index 8412b72b2..c6853a69f 100644 --- a/src/xenia/ui/imgui_drawer.h +++ b/src/xenia/ui/imgui_drawer.h @@ -11,7 +11,6 @@ #define XENIA_UI_IMGUI_DRAWER_H_ #include -#include #include "xenia/ui/immediate_drawer.h" @@ -39,9 +38,6 @@ class ImGuiDrawer { Window* window_ = nullptr; GraphicsContext* graphics_context_ = nullptr; - std::vector vertices_; - std::vector indices_; - std::unique_ptr font_texture_; };