diff options
| author | 2019-05-18 03:02:34 -0300 | |
|---|---|---|
| committer | 2019-05-18 03:07:29 -0300 | |
| commit | 21ea8b2fcbb945d0d89da80c8020a16427c6ca94 (patch) | |
| tree | 1b0ee43e3d8c41262cca3ce31c9faa7fc87057d1 /src | |
| parent | Merge pull request #2477 from ReinUsesLisp/fix-sdl2 (diff) | |
| download | yuzu-21ea8b2fcbb945d0d89da80c8020a16427c6ca94.tar.gz yuzu-21ea8b2fcbb945d0d89da80c8020a16427c6ca94.tar.xz yuzu-21ea8b2fcbb945d0d89da80c8020a16427c6ca94.zip | |
gl_rasterizer: Limit OpenGL point size to a minimum of 1
Diffstat (limited to 'src')
| -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() { | |||
| 1135 | 1135 | ||
| 1136 | void RasterizerOpenGL::SyncPointState() { | 1136 | void RasterizerOpenGL::SyncPointState() { |
| 1137 | const auto& regs = system.GPU().Maxwell3D().regs; | 1137 | const auto& regs = system.GPU().Maxwell3D().regs; |
| 1138 | state.point.size = regs.point_size; | 1138 | // Limit the point size to 1 since nouveau sometimes sets a point size of 0 (and that's invalid |
| 1139 | // in OpenGL). | ||
| 1140 | state.point.size = std::max(1.0f, regs.point_size); | ||
| 1139 | } | 1141 | } |
| 1140 | 1142 | ||
| 1141 | void RasterizerOpenGL::SyncPolygonOffset() { | 1143 | void RasterizerOpenGL::SyncPolygonOffset() { |