diff options
| author | 2018-05-19 11:36:38 -0500 | |
|---|---|---|
| committer | 2018-05-19 11:36:38 -0500 | |
| commit | 98b143c2d6f6e0bc2402333968fba3e42ac8f2b9 (patch) | |
| tree | 7cf4f39c02715c043d35dfeb04d8c103af63c596 /src | |
| parent | GLRenderer: Remove unused vertex buffer and increase the size of the stream b... (diff) | |
| download | yuzu-98b143c2d6f6e0bc2402333968fba3e42ac8f2b9.tar.gz yuzu-98b143c2d6f6e0bc2402333968fba3e42ac8f2b9.tar.xz yuzu-98b143c2d6f6e0bc2402333968fba3e42ac8f2b9.zip | |
GLRenderer: Remove unused hw_vao_enabled_attributes variable.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 3 | ||||
| -rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.h | 1 |
2 files changed, 0 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 39546b7ef..35c1b1890 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp | |||
| @@ -87,7 +87,6 @@ RasterizerOpenGL::RasterizerOpenGL() { | |||
| 87 | framebuffer.Create(); | 87 | framebuffer.Create(); |
| 88 | 88 | ||
| 89 | hw_vao.Create(); | 89 | hw_vao.Create(); |
| 90 | hw_vao_enabled_attributes.fill(false); | ||
| 91 | 90 | ||
| 92 | stream_buffer = OGLStreamBuffer::MakeBuffer(has_ARB_buffer_storage, GL_ARRAY_BUFFER); | 91 | stream_buffer = OGLStreamBuffer::MakeBuffer(has_ARB_buffer_storage, GL_ARRAY_BUFFER); |
| 93 | stream_buffer->Create(STREAM_BUFFER_SIZE, STREAM_BUFFER_SIZE / 2); | 92 | stream_buffer->Create(STREAM_BUFFER_SIZE, STREAM_BUFFER_SIZE / 2); |
| @@ -178,8 +177,6 @@ std::pair<u8*, GLintptr> RasterizerOpenGL::SetupVertexArrays(u8* array_ptr, | |||
| 178 | glVertexAttribFormat(index, attrib.ComponentCount(), MaxwellToGL::VertexType(attrib), | 177 | glVertexAttribFormat(index, attrib.ComponentCount(), MaxwellToGL::VertexType(attrib), |
| 179 | attrib.IsNormalized() ? GL_TRUE : GL_FALSE, attrib.offset); | 178 | attrib.IsNormalized() ? GL_TRUE : GL_FALSE, attrib.offset); |
| 180 | glVertexAttribBinding(index, attrib.buffer); | 179 | glVertexAttribBinding(index, attrib.buffer); |
| 181 | |||
| 182 | hw_vao_enabled_attributes[index] = true; | ||
| 183 | } | 180 | } |
| 184 | 181 | ||
| 185 | return {array_ptr, buffer_offset}; | 182 | return {array_ptr, buffer_offset}; |
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h index 158b74436..4b915c76a 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.h +++ b/src/video_core/renderer_opengl/gl_rasterizer.h | |||
| @@ -134,7 +134,6 @@ private: | |||
| 134 | std::unique_ptr<GLShader::ProgramManager> shader_program_manager; | 134 | std::unique_ptr<GLShader::ProgramManager> shader_program_manager; |
| 135 | OGLVertexArray sw_vao; | 135 | OGLVertexArray sw_vao; |
| 136 | OGLVertexArray hw_vao; | 136 | OGLVertexArray hw_vao; |
| 137 | std::array<bool, 16> hw_vao_enabled_attributes; | ||
| 138 | 137 | ||
| 139 | std::array<SamplerInfo, GLShader::NumTextureSamplers> texture_samplers; | 138 | std::array<SamplerInfo, GLShader::NumTextureSamplers> texture_samplers; |
| 140 | std::array<std::array<OGLBuffer, Tegra::Engines::Maxwell3D::Regs::MaxConstBuffers>, | 139 | std::array<std::array<OGLBuffer, Tegra::Engines::Maxwell3D::Regs::MaxConstBuffers>, |