mirror of
https://github.com/yuzu-emu/yuzu-mainline
synced 2024-11-23 18:43:41 +00:00
gl_rasterizer: Remove unused variables
This commit is contained in:
parent
ffe2336136
commit
6771a18c6c
1 changed files with 0 additions and 2 deletions
|
@ -211,7 +211,6 @@ std::pair<u8*, GLintptr> RasterizerOpenGL::SetupShaders(u8* buffer_ptr, GLintptr
|
||||||
buffer_ptr += sizeof(ubo);
|
buffer_ptr += sizeof(ubo);
|
||||||
buffer_offset += sizeof(ubo);
|
buffer_offset += sizeof(ubo);
|
||||||
|
|
||||||
const Tegra::GPUVAddr addr{gpu.regs.code_address.CodeAddress() + shader_config.offset};
|
|
||||||
Shader shader{shader_cache.GetStageProgram(program)};
|
Shader shader{shader_cache.GetStageProgram(program)};
|
||||||
|
|
||||||
switch (program) {
|
switch (program) {
|
||||||
|
@ -459,7 +458,6 @@ void RasterizerOpenGL::DrawArrays() {
|
||||||
// Draw the vertex batch
|
// Draw the vertex batch
|
||||||
const bool is_indexed = accelerate_draw == AccelDraw::Indexed;
|
const bool is_indexed = accelerate_draw == AccelDraw::Indexed;
|
||||||
const u64 index_buffer_size{regs.index_array.count * regs.index_array.FormatSizeInBytes()};
|
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.draw.vertex_buffer = stream_buffer.GetHandle();
|
||||||
state.Apply();
|
state.Apply();
|
||||||
|
|
Loading…
Reference in a new issue