diff options
| author | 2020-03-18 17:25:14 -0300 | |
|---|---|---|
| committer | 2020-03-18 20:03:19 -0300 | |
| commit | acf328a71f45fef1584466d8ce9f5e55b75e91cc (patch) | |
| tree | a6120086cfd2c5ef097953fcc819f706241a1934 /src | |
| parent | kepler_compute: Remove unused variables (diff) | |
| download | yuzu-acf328a71f45fef1584466d8ce9f5e55b75e91cc.tar.gz yuzu-acf328a71f45fef1584466d8ce9f5e55b75e91cc.tar.xz yuzu-acf328a71f45fef1584466d8ce9f5e55b75e91cc.zip | |
gl_rasterizer: Silence misc warnings
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 1af4268a4..063f41327 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp | |||
| @@ -93,10 +93,6 @@ void oglEnable(GLenum cap, bool state) { | |||
| 93 | (state ? glEnable : glDisable)(cap); | 93 | (state ? glEnable : glDisable)(cap); |
| 94 | } | 94 | } |
| 95 | 95 | ||
| 96 | void oglEnablei(GLenum cap, bool state, GLuint index) { | ||
| 97 | (state ? glEnablei : glDisablei)(cap, index); | ||
| 98 | } | ||
| 99 | |||
| 100 | } // Anonymous namespace | 96 | } // Anonymous namespace |
| 101 | 97 | ||
| 102 | RasterizerOpenGL::RasterizerOpenGL(Core::System& system, Core::Frontend::EmuWindow& emu_window, | 98 | RasterizerOpenGL::RasterizerOpenGL(Core::System& system, Core::Frontend::EmuWindow& emu_window, |
| @@ -478,7 +474,6 @@ void RasterizerOpenGL::Clear() { | |||
| 478 | void RasterizerOpenGL::Draw(bool is_indexed, bool is_instanced) { | 474 | void RasterizerOpenGL::Draw(bool is_indexed, bool is_instanced) { |
| 479 | MICROPROFILE_SCOPE(OpenGL_Drawing); | 475 | MICROPROFILE_SCOPE(OpenGL_Drawing); |
| 480 | auto& gpu = system.GPU().Maxwell3D(); | 476 | auto& gpu = system.GPU().Maxwell3D(); |
| 481 | const auto& regs = gpu.regs; | ||
| 482 | 477 | ||
| 483 | query_cache.UpdateCounters(); | 478 | query_cache.UpdateCounters(); |
| 484 | 479 | ||
| @@ -529,7 +524,7 @@ void RasterizerOpenGL::Draw(bool is_indexed, bool is_instanced) { | |||
| 529 | // Upload vertex and index data. | 524 | // Upload vertex and index data. |
| 530 | SetupVertexBuffer(); | 525 | SetupVertexBuffer(); |
| 531 | SetupVertexInstances(); | 526 | SetupVertexInstances(); |
| 532 | GLintptr index_buffer_offset; | 527 | GLintptr index_buffer_offset = 0; |
| 533 | if (is_indexed) { | 528 | if (is_indexed) { |
| 534 | index_buffer_offset = SetupIndexBuffer(); | 529 | index_buffer_offset = SetupIndexBuffer(); |
| 535 | } | 530 | } |
| @@ -555,7 +550,7 @@ void RasterizerOpenGL::Draw(bool is_indexed, bool is_instanced) { | |||
| 555 | ConfigureFramebuffers(); | 550 | ConfigureFramebuffers(); |
| 556 | 551 | ||
| 557 | // Signal the buffer cache that we are not going to upload more things. | 552 | // Signal the buffer cache that we are not going to upload more things. |
| 558 | const bool invalidate = buffer_cache.Unmap(); | 553 | buffer_cache.Unmap(); |
| 559 | 554 | ||
| 560 | // Now that we are no longer uploading data, we can safely bind the buffers to OpenGL. | 555 | // Now that we are no longer uploading data, we can safely bind the buffers to OpenGL. |
| 561 | vertex_array_pushbuffer.Bind(); | 556 | vertex_array_pushbuffer.Bind(); |