summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp4
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
1136void RasterizerOpenGL::SyncPointState() { 1136void 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
1141void RasterizerOpenGL::SyncPolygonOffset() { 1143void RasterizerOpenGL::SyncPolygonOffset() {