summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_rasterizer_cache.h
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2015-08-30 15:05:56 +0200
committerYuri Kunde Schlesner <yuriks@yuriks.net>2015-09-03 20:09:51 +0200
commitb044c047c48469be479ba2633ae14eff8643041e (patch)
treef76ddff71ac10838e6429815d8267c82b602737f /src/video_core/renderer_opengl/gl_rasterizer_cache.h
parentOpenGL: Remove ugly and endian-unsafe color pointer casts (diff)
downloadyuzu-b044c047c48469be479ba2633ae14eff8643041e.tar
yuzu-b044c047c48469be479ba2633ae14eff8643041e.tar.gz
yuzu-b044c047c48469be479ba2633ae14eff8643041e.tar.bz2
yuzu-b044c047c48469be479ba2633ae14eff8643041e.tar.lz
yuzu-b044c047c48469be479ba2633ae14eff8643041e.tar.xz
yuzu-b044c047c48469be479ba2633ae14eff8643041e.tar.zst
yuzu-b044c047c48469be479ba2633ae14eff8643041e.zip
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer_cache.h')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
index d8f9edf59..ec56237b5 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
@@ -6,6 +6,7 @@
#include "gl_state.h"
#include "gl_resource_manager.h"
+#include "video_core/debug_utils/debug_utils.h"
#include "video_core/pica.h"
#include <memory>
@@ -16,7 +17,11 @@ public:
~RasterizerCacheOpenGL();
/// Loads a texture from 3DS memory to OpenGL and caches it (if not already cached)
- void LoadAndBindTexture(OpenGLState &state, unsigned texture_unit, const Pica::Regs::FullTextureConfig& config);
+ void LoadAndBindTexture(OpenGLState &state, unsigned texture_unit, const Pica::DebugUtils::TextureInfo& info);
+
+ void LoadAndBindTexture(OpenGLState &state, unsigned texture_unit, const Pica::Regs::FullTextureConfig& config) {
+ LoadAndBindTexture(state, texture_unit, Pica::DebugUtils::TextureInfo::FromPicaRegister(config.config, config.format));
+ }
/// Flush any cached resource that touches the flushed region
void NotifyFlush(PAddr addr, u32 size, bool ignore_hash = false);