gl_rasterizer: Limit OpenGL point size to a minimum of 1

This commit is contained in:
ReinUsesLisp 2019-05-18 03:02:34 -03:00
parent 6f1720a5b7
commit 21ea8b2fcb

View file

@ -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() {