diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-05-18 08:02:34 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-05-18 08:07:29 +0200 |
commit | 21ea8b2fcbb945d0d89da80c8020a16427c6ca94 (patch) | |
tree | 1b0ee43e3d8c41262cca3ce31c9faa7fc87057d1 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Merge pull request #2477 from ReinUsesLisp/fix-sdl2 (diff) | |
download | yuzu-21ea8b2fcbb945d0d89da80c8020a16427c6ca94.tar yuzu-21ea8b2fcbb945d0d89da80c8020a16427c6ca94.tar.gz yuzu-21ea8b2fcbb945d0d89da80c8020a16427c6ca94.tar.bz2 yuzu-21ea8b2fcbb945d0d89da80c8020a16427c6ca94.tar.lz yuzu-21ea8b2fcbb945d0d89da80c8020a16427c6ca94.tar.xz yuzu-21ea8b2fcbb945d0d89da80c8020a16427c6ca94.tar.zst yuzu-21ea8b2fcbb945d0d89da80c8020a16427c6ca94.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 3cc945235..d1a1357e4 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -1135,7 +1135,9 @@ void RasterizerOpenGL::SyncTransformFeedback() { void RasterizerOpenGL::SyncPointState() { const auto& regs = system.GPU().Maxwell3D().regs; - state.point.size = regs.point_size; + // Limit the point size to 1 since nouveau sometimes sets a point size of 0 (and that's invalid + // in OpenGL). + state.point.size = std::max(1.0f, regs.point_size); } void RasterizerOpenGL::SyncPolygonOffset() { |