diff options
| author | bunnei <bunneidev@gmail.com> | 2018-08-08 19:16:34 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-08 19:16:34 -0400 |
| commit | 9ceceb212f1381cdae4f1df769e44216cd70dedb (patch) | |
| tree | 2f9a3c36756c4b15f099870f350bd961cd8ae639 /src/video_core/renderer_opengl/gl_state.h | |
| parent | 9f48454ea972bd5df8ea44e9a87b9e5e7b33fad3 (diff) | |
| parent | 57982df105a6d149cc82292541184e6ceabc288c (diff) | |
Merge pull request #981 from bunnei/cbuf-corrupt
maxwell_3d: Use correct const buffer size and check bounds.
Diffstat (limited to 'src/video_core/renderer_opengl/gl_state.h')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_state.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.h b/src/video_core/renderer_opengl/gl_state.h index 24b1d956b..5c7b636e4 100644 --- a/src/video_core/renderer_opengl/gl_state.h +++ b/src/video_core/renderer_opengl/gl_state.h @@ -7,6 +7,10 @@ #include <array> #include <glad/glad.h> +#include "video_core/engines/maxwell_3d.h" + +using Regs = Tegra::Engines::Maxwell3D::Regs; + namespace TextureUnits { struct TextureUnit { @@ -120,7 +124,7 @@ public: GLuint bindpoint; GLuint ssbo; }; - std::array<std::array<ConstBufferConfig, 16>, 5> const_buffers{}; + std::array<std::array<ConstBufferConfig, Regs::MaxConstBuffers>, 5> const_buffers; } draw; struct { |
