summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2018-10-01 10:34:53 -0400
committerGravatar GitHub2018-10-01 10:34:53 -0400
commit393042c09c38246a134cb89c077b19a409f3566e (patch)
tree133ad8f2af6ee491cadcfebfae10290a080b1c82 /src
parentMerge pull request #1330 from raven02/tlds (diff)
parentgl_rasterizer: Fixup unassigned point sizes (diff)
downloadyuzu-393042c09c38246a134cb89c077b19a409f3566e.tar.gz
yuzu-393042c09c38246a134cb89c077b19a409f3566e.tar.xz
yuzu-393042c09c38246a134cb89c077b19a409f3566e.zip
Merge pull request #1422 from ReinUsesLisp/fixup-points
gl_rasterizer: Fixup unassigned point sizes
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp5
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() {
909void RasterizerOpenGL::SyncPointState() { 909void RasterizerOpenGL::SyncPointState() {
910 const auto& regs = Core::System::GetInstance().GPU().Maxwell3D().regs; 910 const auto& regs = Core::System::GetInstance().GPU().Maxwell3D().regs;
911 911
912 state.point.size = regs.point_size; 912 // TODO(Rodrigo): Most games do not set a point size. I think this is a case of a
913 // register carrying a default value. For now, if the point size is zero, assume it's
914 // OpenGL's default (1).
915 state.point.size = regs.point_size == 0 ? 1 : regs.point_size;
913} 916}
914 917
915} // namespace OpenGL 918} // namespace OpenGL