summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2018-08-28 10:45:11 -0400
committerGravatar Lioncash2018-08-28 10:46:29 -0400
commit6771a18c6c7d9b7da4e3e205550683342a57ac83 (patch)
tree3c4992768d8c9f7f7c422c01f6dc2577b29c5464 /src
parentMerge pull request #1165 from bunnei/shader-cache (diff)
downloadyuzu-6771a18c6c7d9b7da4e3e205550683342a57ac83.tar.gz
yuzu-6771a18c6c7d9b7da4e3e205550683342a57ac83.tar.xz
yuzu-6771a18c6c7d9b7da4e3e205550683342a57ac83.zip
gl_rasterizer: Remove unused variables
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index 9951d8178..dcf987d89 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -211,7 +211,6 @@ std::pair<u8*, GLintptr> RasterizerOpenGL::SetupShaders(u8* buffer_ptr, GLintptr
211 buffer_ptr += sizeof(ubo); 211 buffer_ptr += sizeof(ubo);
212 buffer_offset += sizeof(ubo); 212 buffer_offset += sizeof(ubo);
213 213
214 const Tegra::GPUVAddr addr{gpu.regs.code_address.CodeAddress() + shader_config.offset};
215 Shader shader{shader_cache.GetStageProgram(program)}; 214 Shader shader{shader_cache.GetStageProgram(program)};
216 215
217 switch (program) { 216 switch (program) {
@@ -459,7 +458,6 @@ void RasterizerOpenGL::DrawArrays() {
459 // Draw the vertex batch 458 // Draw the vertex batch
460 const bool is_indexed = accelerate_draw == AccelDraw::Indexed; 459 const bool is_indexed = accelerate_draw == AccelDraw::Indexed;
461 const u64 index_buffer_size{regs.index_array.count * regs.index_array.FormatSizeInBytes()}; 460 const u64 index_buffer_size{regs.index_array.count * regs.index_array.FormatSizeInBytes()};
462 const unsigned vertex_num{is_indexed ? regs.index_array.count : regs.vertex_buffer.count};
463 461
464 state.draw.vertex_buffer = stream_buffer.GetHandle(); 462 state.draw.vertex_buffer = stream_buffer.GetHandle();
465 state.Apply(); 463 state.Apply();