Removing unused buffers.

This commit is contained in:
Ben Vanik 2015-11-05 23:08:22 -08:00
parent 4c2257a29d
commit d4356b8cfa
2 changed files with 1 additions and 11 deletions

View File

@ -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;

View File

@ -11,7 +11,6 @@
#define XENIA_UI_IMGUI_DRAWER_H_
#include <memory>
#include <vector>
#include "xenia/ui/immediate_drawer.h"
@ -39,9 +38,6 @@ class ImGuiDrawer {
Window* window_ = nullptr;
GraphicsContext* graphics_context_ = nullptr;
std::vector<ImmediateVertex> vertices_;
std::vector<uint16_t> indices_;
std::unique_ptr<ImmediateTexture> font_texture_;
};