diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2018-10-01 06:18:24 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2018-10-01 06:18:24 +0200 |
commit | 18359114255f8fd48b7608dd04895058cb24756e (patch) | |
tree | 133ad8f2af6ee491cadcfebfae10290a080b1c82 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Merge pull request #1330 from raven02/tlds (diff) | |
download | yuzu-18359114255f8fd48b7608dd04895058cb24756e.tar yuzu-18359114255f8fd48b7608dd04895058cb24756e.tar.gz yuzu-18359114255f8fd48b7608dd04895058cb24756e.tar.bz2 yuzu-18359114255f8fd48b7608dd04895058cb24756e.tar.lz yuzu-18359114255f8fd48b7608dd04895058cb24756e.tar.xz yuzu-18359114255f8fd48b7608dd04895058cb24756e.tar.zst yuzu-18359114255f8fd48b7608dd04895058cb24756e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 14d82a7bc..587d9dffb 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -909,7 +909,10 @@ void RasterizerOpenGL::SyncTransformFeedback() { void RasterizerOpenGL::SyncPointState() { const auto& regs = Core::System::GetInstance().GPU().Maxwell3D().regs; - state.point.size = regs.point_size; + // TODO(Rodrigo): Most games do not set a point size. I think this is a case of a + // register carrying a default value. For now, if the point size is zero, assume it's + // OpenGL's default (1). + state.point.size = regs.point_size == 0 ? 1 : regs.point_size; } } // namespace OpenGL |