summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_state.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-11-25 01:36:30 +0100
committerGitHub <noreply@github.com>2019-11-25 01:36:30 +0100
commitb03242067d9ba9e3ad9804d2ccfe596f45da6ba6 (patch)
tree386c8566d385869702b34ddb00ff58f7e8e275bf /src/video_core/renderer_opengl/gl_state.h
parentMerge pull request #3105 from ReinUsesLisp/fix-stencil-reg (diff)
parentgl_device: Reserve base bindings on limited devices (diff)
downloadyuzu-b03242067d9ba9e3ad9804d2ccfe596f45da6ba6.tar
yuzu-b03242067d9ba9e3ad9804d2ccfe596f45da6ba6.tar.gz
yuzu-b03242067d9ba9e3ad9804d2ccfe596f45da6ba6.tar.bz2
yuzu-b03242067d9ba9e3ad9804d2ccfe596f45da6ba6.tar.lz
yuzu-b03242067d9ba9e3ad9804d2ccfe596f45da6ba6.tar.xz
yuzu-b03242067d9ba9e3ad9804d2ccfe596f45da6ba6.tar.zst
yuzu-b03242067d9ba9e3ad9804d2ccfe596f45da6ba6.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_state.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.h b/src/video_core/renderer_opengl/gl_state.h
index eaff22bda..e53c2c5f2 100644
--- a/src/video_core/renderer_opengl/gl_state.h
+++ b/src/video_core/renderer_opengl/gl_state.h
@@ -96,9 +96,11 @@ public:
GLenum operation = GL_COPY;
} logic_op;
- 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 = {};
+ static constexpr std::size_t NumSamplers = 32 * 5;
+ static constexpr std::size_t NumImages = 8 * 5;
+ std::array<GLuint, NumSamplers> textures = {};
+ std::array<GLuint, NumSamplers> samplers = {};
+ std::array<GLuint, NumImages> images = {};
struct {
GLuint read_framebuffer = 0; // GL_READ_FRAMEBUFFER_BINDING