GL4CommandProcessor: Use the new GL4ShaderCache

This commit is contained in:
Dr. Chat
2016-02-05 16:14:35 -06:00
parent 406ec8c6da
commit 6cb7f0c23d
2 changed files with 7 additions and 40 deletions

View File

@@ -23,6 +23,7 @@
#include "xenia/base/threading.h"
#include "xenia/gpu/command_processor.h"
#include "xenia/gpu/gl4/draw_batcher.h"
#include "xenia/gpu/gl4/gl4_shader_cache.h"
#include "xenia/gpu/gl4/gl4_shader.h"
#include "xenia/gpu/gl4/texture_cache.h"
#include "xenia/gpu/glsl_shader_translator.h"
@@ -131,8 +132,7 @@ class GL4CommandProcessor : public CommandProcessor {
GLuint depth_target);
GlslShaderTranslator shader_translator_;
std::vector<std::unique_ptr<GL4Shader>> all_shaders_;
std::unordered_map<uint64_t, GL4Shader*> shader_cache_;
GL4ShaderCache shader_cache_;
CachedFramebuffer* active_framebuffer_ = nullptr;
GLuint last_framebuffer_texture_ = 0;