diff options
author | Hexagon12 <Hexagon12@users.noreply.github.com> | 2019-05-19 15:57:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-19 15:57:05 +0200 |
commit | 8e9a1e4249d7a35a2760cd1469e565f8d917905d (patch) | |
tree | e609a9053eca0e7cfd115cc978586996bbfeca4a /src/video_core | |
parent | Merge pull request #2471 from lioncash/engine-upload (diff) | |
parent | gl_rasterizer: Limit OpenGL point size to a minimum of 1 (diff) | |
download | yuzu-8e9a1e4249d7a35a2760cd1469e565f8d917905d.tar yuzu-8e9a1e4249d7a35a2760cd1469e565f8d917905d.tar.gz yuzu-8e9a1e4249d7a35a2760cd1469e565f8d917905d.tar.bz2 yuzu-8e9a1e4249d7a35a2760cd1469e565f8d917905d.tar.lz yuzu-8e9a1e4249d7a35a2760cd1469e565f8d917905d.tar.xz yuzu-8e9a1e4249d7a35a2760cd1469e565f8d917905d.tar.zst yuzu-8e9a1e4249d7a35a2760cd1469e565f8d917905d.zip |
Diffstat (limited to 'src/video_core')
-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() { |