summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-08-28 16:45:11 +0200
committerLioncash <mathew1800@gmail.com>2018-08-28 16:46:29 +0200
commit6771a18c6c7d9b7da4e3e205550683342a57ac83 (patch)
tree3c4992768d8c9f7f7c422c01f6dc2577b29c5464
parentMerge pull request #1165 from bunnei/shader-cache (diff)
downloadyuzu-6771a18c6c7d9b7da4e3e205550683342a57ac83.tar
yuzu-6771a18c6c7d9b7da4e3e205550683342a57ac83.tar.gz
yuzu-6771a18c6c7d9b7da4e3e205550683342a57ac83.tar.bz2
yuzu-6771a18c6c7d9b7da4e3e205550683342a57ac83.tar.lz
yuzu-6771a18c6c7d9b7da4e3e205550683342a57ac83.tar.xz
yuzu-6771a18c6c7d9b7da4e3e205550683342a57ac83.tar.zst
yuzu-6771a18c6c7d9b7da4e3e205550683342a57ac83.zip
Diffstat (limited to '')
-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
buffer_ptr += sizeof(ubo);
buffer_offset += sizeof(ubo);
- const Tegra::GPUVAddr addr{gpu.regs.code_address.CodeAddress() + shader_config.offset};
Shader shader{shader_cache.GetStageProgram(program)};
switch (program) {
@@ -459,7 +458,6 @@ void RasterizerOpenGL::DrawArrays() {
// Draw the vertex batch
const bool is_indexed = accelerate_draw == AccelDraw::Indexed;
const u64 index_buffer_size{regs.index_array.count * regs.index_array.FormatSizeInBytes()};
- const unsigned vertex_num{is_indexed ? regs.index_array.count : regs.vertex_buffer.count};
state.draw.vertex_buffer = stream_buffer.GetHandle();
state.Apply();