diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-28 18:28:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-28 18:28:13 +0200 |
commit | eb4f2d5596d31930bd46d03f5a98732184afbaad (patch) | |
tree | c64096ea4577bd9191af5706f88e1ac39355371f /src/video_core | |
parent | Merge pull request #1191 from lioncash/noexcept (diff) | |
parent | gl_rasterizer: Remove unused variables (diff) | |
download | yuzu-eb4f2d5596d31930bd46d03f5a98732184afbaad.tar yuzu-eb4f2d5596d31930bd46d03f5a98732184afbaad.tar.gz yuzu-eb4f2d5596d31930bd46d03f5a98732184afbaad.tar.bz2 yuzu-eb4f2d5596d31930bd46d03f5a98732184afbaad.tar.lz yuzu-eb4f2d5596d31930bd46d03f5a98732184afbaad.tar.xz yuzu-eb4f2d5596d31930bd46d03f5a98732184afbaad.tar.zst yuzu-eb4f2d5596d31930bd46d03f5a98732184afbaad.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 2 |
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(); |