diff options
| author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-07-11 01:32:12 -0300 |
|---|---|---|
| committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-09-05 20:35:51 -0300 |
| commit | 04cdecb7a114471fec50deab86bcd160ec85feb4 (patch) | |
| tree | 69af6a51405451420ac7b80cf6d5b43f50b4e73f /src/video_core/renderer_opengl/gl_state.h | |
| parent | 6170337001cc11deabd57023a548c44de4242e9d (diff) | |
gl_state: Split textures and samplers into two arrays
Diffstat (limited to 'src/video_core/renderer_opengl/gl_state.h')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_state.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.h b/src/video_core/renderer_opengl/gl_state.h index 9748d60e2..949b13051 100644 --- a/src/video_core/renderer_opengl/gl_state.h +++ b/src/video_core/renderer_opengl/gl_state.h @@ -118,22 +118,8 @@ public: GLenum operation; } logic_op; - // 3 texture units - one for each that is used in PICA fragment shader emulation - struct TextureUnit { - GLuint texture; // GL_TEXTURE_BINDING_2D - GLuint sampler; // GL_SAMPLER_BINDING - - void Unbind() { - texture = 0; - } - - void Reset() { - Unbind(); - sampler = 0; - } - }; - std::array<TextureUnit, Tegra::Engines::Maxwell3D::Regs::NumTextureSamplers> texture_units; - + std::array<GLuint, Tegra::Engines::Maxwell3D::Regs::NumTextureSamplers> textures{}; + std::array<GLuint, Tegra::Engines::Maxwell3D::Regs::NumTextureSamplers> samplers{}; std::array<GLuint, Tegra::Engines::Maxwell3D::Regs::NumImages> images{}; struct { |
