mirror of
https://github.com/yuzu-mirror/yuzu
synced 2024-12-20 09:33:08 +00:00
Merge pull request #2483 from ReinUsesLisp/fix-point-size
gl_rasterizer: Limit OpenGL point size to a minimum of 1
This commit is contained in:
commit
8e9a1e4249
1 changed files with 3 additions and 1 deletions
|
@ -1135,7 +1135,9 @@ void RasterizerOpenGL::SyncTransformFeedback() {
|
||||||
|
|
||||||
void RasterizerOpenGL::SyncPointState() {
|
void RasterizerOpenGL::SyncPointState() {
|
||||||
const auto& regs = system.GPU().Maxwell3D().regs;
|
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() {
|
void RasterizerOpenGL::SyncPolygonOffset() {
|
||||||
|
|
Loading…
Reference in a new issue