summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-03-18 21:25:14 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-03-19 00:03:19 +0100
commitacf328a71f45fef1584466d8ce9f5e55b75e91cc (patch)
treea6120086cfd2c5ef097953fcc819f706241a1934 /src/video_core
parentkepler_compute: Remove unused variables (diff)
downloadyuzu-acf328a71f45fef1584466d8ce9f5e55b75e91cc.tar
yuzu-acf328a71f45fef1584466d8ce9f5e55b75e91cc.tar.gz
yuzu-acf328a71f45fef1584466d8ce9f5e55b75e91cc.tar.bz2
yuzu-acf328a71f45fef1584466d8ce9f5e55b75e91cc.tar.lz
yuzu-acf328a71f45fef1584466d8ce9f5e55b75e91cc.tar.xz
yuzu-acf328a71f45fef1584466d8ce9f5e55b75e91cc.tar.zst
yuzu-acf328a71f45fef1584466d8ce9f5e55b75e91cc.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp9
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) {
(state ? glEnable : glDisable)(cap);
}
-void oglEnablei(GLenum cap, bool state, GLuint index) {
- (state ? glEnablei : glDisablei)(cap, index);
-}
-
} // Anonymous namespace
RasterizerOpenGL::RasterizerOpenGL(Core::System& system, Core::Frontend::EmuWindow& emu_window,
@@ -478,7 +474,6 @@ void RasterizerOpenGL::Clear() {
void RasterizerOpenGL::Draw(bool is_indexed, bool is_instanced) {
MICROPROFILE_SCOPE(OpenGL_Drawing);
auto& gpu = system.GPU().Maxwell3D();
- const auto& regs = gpu.regs;
query_cache.UpdateCounters();
@@ -529,7 +524,7 @@ void RasterizerOpenGL::Draw(bool is_indexed, bool is_instanced) {
// Upload vertex and index data.
SetupVertexBuffer();
SetupVertexInstances();
- GLintptr index_buffer_offset;
+ GLintptr index_buffer_offset = 0;
if (is_indexed) {
index_buffer_offset = SetupIndexBuffer();
}
@@ -555,7 +550,7 @@ void RasterizerOpenGL::Draw(bool is_indexed, bool is_instanced) {
ConfigureFramebuffers();
// Signal the buffer cache that we are not going to upload more things.
- const bool invalidate = buffer_cache.Unmap();
+ buffer_cache.Unmap();
// Now that we are no longer uploading data, we can safely bind the buffers to OpenGL.
vertex_array_pushbuffer.Bind();