mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
GLRenderer: Remove unused hw_vao_enabled_attributes variable.
This commit is contained in:
parent
370ab5df9b
commit
98b143c2d6
|
@ -87,7 +87,6 @@ RasterizerOpenGL::RasterizerOpenGL() {
|
||||||
framebuffer.Create();
|
framebuffer.Create();
|
||||||
|
|
||||||
hw_vao.Create();
|
hw_vao.Create();
|
||||||
hw_vao_enabled_attributes.fill(false);
|
|
||||||
|
|
||||||
stream_buffer = OGLStreamBuffer::MakeBuffer(has_ARB_buffer_storage, GL_ARRAY_BUFFER);
|
stream_buffer = OGLStreamBuffer::MakeBuffer(has_ARB_buffer_storage, GL_ARRAY_BUFFER);
|
||||||
stream_buffer->Create(STREAM_BUFFER_SIZE, STREAM_BUFFER_SIZE / 2);
|
stream_buffer->Create(STREAM_BUFFER_SIZE, STREAM_BUFFER_SIZE / 2);
|
||||||
|
@ -178,8 +177,6 @@ std::pair<u8*, GLintptr> RasterizerOpenGL::SetupVertexArrays(u8* array_ptr,
|
||||||
glVertexAttribFormat(index, attrib.ComponentCount(), MaxwellToGL::VertexType(attrib),
|
glVertexAttribFormat(index, attrib.ComponentCount(), MaxwellToGL::VertexType(attrib),
|
||||||
attrib.IsNormalized() ? GL_TRUE : GL_FALSE, attrib.offset);
|
attrib.IsNormalized() ? GL_TRUE : GL_FALSE, attrib.offset);
|
||||||
glVertexAttribBinding(index, attrib.buffer);
|
glVertexAttribBinding(index, attrib.buffer);
|
||||||
|
|
||||||
hw_vao_enabled_attributes[index] = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return {array_ptr, buffer_offset};
|
return {array_ptr, buffer_offset};
|
||||||
|
|
|
@ -134,7 +134,6 @@ private:
|
||||||
std::unique_ptr<GLShader::ProgramManager> shader_program_manager;
|
std::unique_ptr<GLShader::ProgramManager> shader_program_manager;
|
||||||
OGLVertexArray sw_vao;
|
OGLVertexArray sw_vao;
|
||||||
OGLVertexArray hw_vao;
|
OGLVertexArray hw_vao;
|
||||||
std::array<bool, 16> hw_vao_enabled_attributes;
|
|
||||||
|
|
||||||
std::array<SamplerInfo, GLShader::NumTextureSamplers> texture_samplers;
|
std::array<SamplerInfo, GLShader::NumTextureSamplers> texture_samplers;
|
||||||
std::array<std::array<OGLBuffer, Tegra::Engines::Maxwell3D::Regs::MaxConstBuffers>,
|
std::array<std::array<OGLBuffer, Tegra::Engines::Maxwell3D::Regs::MaxConstBuffers>,
|
||||||
|
|
Loading…
Reference in a new issue