mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
gl_rasterizer: Fixup unassigned point sizes
This commit is contained in:
parent
bc679c9b8c
commit
1835911425
1 changed files with 4 additions and 1 deletions
|
@ -909,7 +909,10 @@ void RasterizerOpenGL::SyncTransformFeedback() {
|
||||||
void RasterizerOpenGL::SyncPointState() {
|
void RasterizerOpenGL::SyncPointState() {
|
||||||
const auto& regs = Core::System::GetInstance().GPU().Maxwell3D().regs;
|
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
|
} // namespace OpenGL
|
||||||
|
|
Loading…
Reference in a new issue