diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-09-18 16:20:33 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-09-19 17:41:32 +0200 |
commit | d2ea592ddbf1d236ebb4eb58eedd2d0ffbe92455 (patch) | |
tree | f4bce3ff46c096a63613b197f018138e8ce22755 /src | |
parent | Rasterizer: Refactor draw calls, remove deadcode and clean up. (diff) | |
download | yuzu-d2ea592ddbf1d236ebb4eb58eedd2d0ffbe92455.tar yuzu-d2ea592ddbf1d236ebb4eb58eedd2d0ffbe92455.tar.gz yuzu-d2ea592ddbf1d236ebb4eb58eedd2d0ffbe92455.tar.bz2 yuzu-d2ea592ddbf1d236ebb4eb58eedd2d0ffbe92455.tar.lz yuzu-d2ea592ddbf1d236ebb4eb58eedd2d0ffbe92455.tar.xz yuzu-d2ea592ddbf1d236ebb4eb58eedd2d0ffbe92455.tar.zst yuzu-d2ea592ddbf1d236ebb4eb58eedd2d0ffbe92455.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 9ca832863..b86aa49f3 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -728,19 +728,19 @@ void RasterizerOpenGL::DrawPrelude() { } struct DrawParams { - bool is_indexed; - bool is_instanced; - GLenum primitive_mode; - GLint count; - GLint base_vertex; + bool is_indexed{}; + bool is_instanced{}; + GLenum primitive_mode{}; + GLint count{}; + GLint base_vertex{}; // Indexed settings - GLenum index_format; - GLintptr index_buffer_offset; + GLenum index_format{}; + GLintptr index_buffer_offset{}; // Instanced setting - GLint num_instances; - GLint base_instance; + GLint num_instances{}; + GLint base_instance{}; void DispatchDraw() { if (is_indexed) { @@ -770,7 +770,7 @@ void RasterizerOpenGL::DrawArrays() { auto& maxwell3d = system.GPU().Maxwell3D(); const auto& regs = maxwell3d.regs; const auto current_instance = maxwell3d.state.current_instance; - DrawParams draw_call; + DrawParams draw_call{}; draw_call.is_indexed = accelerate_draw == AccelDraw::Indexed; draw_call.num_instances = static_cast<GLint>(1); draw_call.base_instance = static_cast<GLint>(current_instance); @@ -797,7 +797,7 @@ void RasterizerOpenGL::DrawMultiArrays() { auto& maxwell3d = system.GPU().Maxwell3D(); const auto& regs = maxwell3d.regs; const auto& draw_setup = maxwell3d.mme_draw; - DrawParams draw_call; + DrawParams draw_call{}; draw_call.is_indexed = draw_setup.current_mode == Tegra::Engines::Maxwell3D::MMMEDrawMode::Indexed; draw_call.num_instances = static_cast<GLint>(draw_setup.instance_count); |