diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-12-20 00:36:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-20 00:36:50 +0100 |
commit | 6a1fa9bb17bdda171d0d45543dd663886bc6ce88 (patch) | |
tree | b6108e887ffc058ac3e4a3cdb72e82f16be8fb4a /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Merge pull request #12408 from german77/lang (diff) | |
parent | gl_rasterizer: Silence spammy logs (diff) | |
download | yuzu-6a1fa9bb17bdda171d0d45543dd663886bc6ce88.tar yuzu-6a1fa9bb17bdda171d0d45543dd663886bc6ce88.tar.gz yuzu-6a1fa9bb17bdda171d0d45543dd663886bc6ce88.tar.bz2 yuzu-6a1fa9bb17bdda171d0d45543dd663886bc6ce88.tar.lz yuzu-6a1fa9bb17bdda171d0d45543dd663886bc6ce88.tar.xz yuzu-6a1fa9bb17bdda171d0d45543dd663886bc6ce88.tar.zst yuzu-6a1fa9bb17bdda171d0d45543dd663886bc6ce88.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 279e5a4e0..4832c03c5 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -162,14 +162,18 @@ void RasterizerOpenGL::Clear(u32 layer_count) { SyncFramebufferSRGB(); } if (regs.clear_surface.Z) { - ASSERT_MSG(regs.zeta_enable != 0, "Tried to clear Z but buffer is not enabled!"); + if (regs.zeta_enable != 0) { + LOG_DEBUG(Render_OpenGL, "Tried to clear Z but buffer is not enabled!"); + } use_depth = true; state_tracker.NotifyDepthMask(); glDepthMask(GL_TRUE); } if (regs.clear_surface.S) { - ASSERT_MSG(regs.zeta_enable, "Tried to clear stencil but buffer is not enabled!"); + if (regs.zeta_enable) { + LOG_DEBUG(Render_OpenGL, "Tried to clear stencil but buffer is not enabled!"); + } use_stencil = true; } @@ -1294,15 +1298,13 @@ void RasterizerOpenGL::BeginTransformFeedback(GraphicsPipeline* program, GLenum program->ConfigureTransformFeedback(); UNIMPLEMENTED_IF(regs.IsShaderConfigEnabled(Maxwell::ShaderType::TessellationInit) || - regs.IsShaderConfigEnabled(Maxwell::ShaderType::Tessellation) || - regs.IsShaderConfigEnabled(Maxwell::ShaderType::Geometry)); - UNIMPLEMENTED_IF(primitive_mode != GL_POINTS); + regs.IsShaderConfigEnabled(Maxwell::ShaderType::Tessellation)); // We may have to call BeginTransformFeedbackNV here since they seem to call different // implementations on Nvidia's driver (the pointer is different) but we are using // ARB_transform_feedback3 features with NV_transform_feedback interactions and the ARB // extension doesn't define BeginTransformFeedback (without NV) interactions. It just works. - glBeginTransformFeedback(GL_POINTS); + glBeginTransformFeedback(primitive_mode); } void RasterizerOpenGL::EndTransformFeedback() { |