diff options
author | Lioncash <mathew1800@gmail.com> | 2018-07-21 00:31:36 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-07-21 00:34:49 +0200 |
commit | 863579736cee987b7d3c341907b6c25f4fc1357b (patch) | |
tree | fe3f302bdf820dc2bdaf72a52354b82864c98945 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Merge pull request #742 from bunnei/misc-apm (diff) | |
download | yuzu-863579736cee987b7d3c341907b6c25f4fc1357b.tar yuzu-863579736cee987b7d3c341907b6c25f4fc1357b.tar.gz yuzu-863579736cee987b7d3c341907b6c25f4fc1357b.tar.bz2 yuzu-863579736cee987b7d3c341907b6c25f4fc1357b.tar.lz yuzu-863579736cee987b7d3c341907b6c25f4fc1357b.tar.xz yuzu-863579736cee987b7d3c341907b6c25f4fc1357b.tar.zst yuzu-863579736cee987b7d3c341907b6c25f4fc1357b.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index f75999557..65a2fd5e8 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -634,8 +634,8 @@ void RasterizerOpenGL::SamplerInfo::SyncWithConfig(const Tegra::Texture::TSCEntr u32 RasterizerOpenGL::SetupConstBuffers(Maxwell::ShaderStage stage, GLuint program, u32 current_bindpoint, const std::vector<GLShader::ConstBufferEntry>& entries) { - auto& gpu = Core::System::GetInstance().GPU(); - auto& maxwell3d = gpu.Get3DEngine(); + const auto& gpu = Core::System::GetInstance().GPU(); + const auto& maxwell3d = gpu.Maxwell3D(); // Reset all buffer draw state for this stage. for (auto& buffer : state.draw.const_buffers[static_cast<size_t>(stage)]) { @@ -644,7 +644,7 @@ u32 RasterizerOpenGL::SetupConstBuffers(Maxwell::ShaderStage stage, GLuint progr } // Upload only the enabled buffers from the 16 constbuffers of each shader stage - auto& shader_stage = maxwell3d.state.shader_stages[static_cast<size_t>(stage)]; + const auto& shader_stage = maxwell3d.state.shader_stages[static_cast<size_t>(stage)]; for (u32 bindpoint = 0; bindpoint < entries.size(); ++bindpoint) { const auto& used_buffer = entries[bindpoint]; @@ -700,8 +700,8 @@ u32 RasterizerOpenGL::SetupConstBuffers(Maxwell::ShaderStage stage, GLuint progr u32 RasterizerOpenGL::SetupTextures(Maxwell::ShaderStage stage, GLuint program, u32 current_unit, const std::vector<GLShader::SamplerEntry>& entries) { - auto& gpu = Core::System::GetInstance().GPU(); - auto& maxwell3d = gpu.Get3DEngine(); + const auto& gpu = Core::System::GetInstance().GPU(); + const auto& maxwell3d = gpu.Maxwell3D(); ASSERT_MSG(current_unit + entries.size() <= std::size(state.texture_units), "Exceeded the number of active textures."); |