diff options
author | bunnei <bunneidev@gmail.com> | 2019-06-18 04:35:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-18 04:35:04 +0200 |
commit | c7b5c245e1e6c8ec27e26cd767a34eeb8531580b (patch) | |
tree | b0139c242f5a609e73e253e5d717dc5149527bfb /src/video_core/engines/maxwell_3d.cpp | |
parent | Merge pull request #2538 from ReinUsesLisp/ssy-pbk (diff) | |
parent | gl_rasterizer: Remove unused parameters in descriptor uploads (diff) | |
download | yuzu-c7b5c245e1e6c8ec27e26cd767a34eeb8531580b.tar yuzu-c7b5c245e1e6c8ec27e26cd767a34eeb8531580b.tar.gz yuzu-c7b5c245e1e6c8ec27e26cd767a34eeb8531580b.tar.bz2 yuzu-c7b5c245e1e6c8ec27e26cd767a34eeb8531580b.tar.lz yuzu-c7b5c245e1e6c8ec27e26cd767a34eeb8531580b.tar.xz yuzu-c7b5c245e1e6c8ec27e26cd767a34eeb8531580b.tar.zst yuzu-c7b5c245e1e6c8ec27e26cd767a34eeb8531580b.zip |
Diffstat (limited to 'src/video_core/engines/maxwell_3d.cpp')
-rw-r--r-- | src/video_core/engines/maxwell_3d.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index 39968d403..08d553696 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp @@ -396,12 +396,10 @@ void Maxwell3D::ProcessCBBind(Regs::ShaderStage stage) { auto& shader = state.shader_stages[static_cast<std::size_t>(stage)]; auto& bind_data = regs.cb_bind[static_cast<std::size_t>(stage)]; - auto& buffer = shader.const_buffers[bind_data.index]; - ASSERT(bind_data.index < Regs::MaxConstBuffers); + auto& buffer = shader.const_buffers[bind_data.index]; buffer.enabled = bind_data.valid.Value() != 0; - buffer.index = bind_data.index; buffer.address = regs.const_buffer.BufferAddress(); buffer.size = regs.const_buffer.cb_size; } |