set default value for point size register
This commit is contained in:
parent
1881e86c43
commit
6a2aa6dbdb
|
@ -66,6 +66,9 @@ void Maxwell3D::InitializeRegisterDefaults() {
|
||||||
regs.stencil_back_func_func = Regs::ComparisonOp::Always;
|
regs.stencil_back_func_func = Regs::ComparisonOp::Always;
|
||||||
regs.stencil_back_func_mask = 0xFFFFFFFF;
|
regs.stencil_back_func_mask = 0xFFFFFFFF;
|
||||||
regs.stencil_back_mask = 0xFFFFFFFF;
|
regs.stencil_back_mask = 0xFFFFFFFF;
|
||||||
|
// TODO(Rodrigo): Most games do not set a point size. I think this is a case of a
|
||||||
|
// register carrying a default value. Assume it's OpenGL's default (1).
|
||||||
|
regs.point_size = 1.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Maxwell3D::CallMacroMethod(u32 method, std::vector<u32> parameters) {
|
void Maxwell3D::CallMacroMethod(u32 method, std::vector<u32> parameters) {
|
||||||
|
|
|
@ -1119,11 +1119,7 @@ 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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void RasterizerOpenGL::CheckAlphaTests() {
|
void RasterizerOpenGL::CheckAlphaTests() {
|
||||||
|
|
Loading…
Reference in New Issue