GL: Implement more Point parameters (#1399)

* Fix GL_INVALID_VALUE on glPointSize calls

* Implement more of Point primitive state

* Use existing Origin enum
This commit is contained in:
mageven 2020-07-21 06:29:13 +05:30 committed by GitHub
parent 1c84b683c2
commit 723ae240dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 49 additions and 7 deletions

View file

@ -173,6 +173,11 @@ namespace Ryujinx.Graphics.Gpu.State
{
Set(MethodOffset.BlendState, index, BlendState.Default);
}
// Default Point Parameters
memory[(int)MethodOffset.PointSpriteEnable] = 1;
memory[(int)MethodOffset.PointSize] = 0x3F800000; // 1.0f
memory[(int)MethodOffset.PointCoordReplace] = 0x8; // Enable
}
/// <summary>