diff options
| author | 2018-11-13 20:15:13 -0300 | |
|---|---|---|
| committer | 2018-11-17 19:59:33 -0300 | |
| commit | 6a2aa6dbdbe50abe8447db4e9d93dacecf39f269 (patch) | |
| tree | e8323ed1f90074874acf9a16d3378f3f60342af7 /src | |
| parent | fix viewport and scissor behavior (diff) | |
| download | yuzu-6a2aa6dbdbe50abe8447db4e9d93dacecf39f269.tar.gz yuzu-6a2aa6dbdbe50abe8447db4e9d93dacecf39f269.tar.xz yuzu-6a2aa6dbdbe50abe8447db4e9d93dacecf39f269.zip | |
set default value for point size register
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/engines/maxwell_3d.cpp | 3 | ||||
| -rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 6 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index 58b598c7f..a04e00ecb 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp | |||
| @@ -66,6 +66,9 @@ void Maxwell3D::InitializeRegisterDefaults() { | |||
| 66 | regs.stencil_back_func_func = Regs::ComparisonOp::Always; | 66 | regs.stencil_back_func_func = Regs::ComparisonOp::Always; |
| 67 | regs.stencil_back_func_mask = 0xFFFFFFFF; | 67 | regs.stencil_back_func_mask = 0xFFFFFFFF; |
| 68 | regs.stencil_back_mask = 0xFFFFFFFF; | 68 | regs.stencil_back_mask = 0xFFFFFFFF; |
| 69 | // TODO(Rodrigo): Most games do not set a point size. I think this is a case of a | ||
| 70 | // register carrying a default value. Assume it's OpenGL's default (1). | ||
| 71 | regs.point_size = 1.0f; | ||
| 69 | } | 72 | } |
| 70 | 73 | ||
| 71 | void Maxwell3D::CallMacroMethod(u32 method, std::vector<u32> parameters) { | 74 | void Maxwell3D::CallMacroMethod(u32 method, std::vector<u32> parameters) { |
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 0bf434b45..0e55bee11 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp | |||
| @@ -1119,11 +1119,7 @@ void RasterizerOpenGL::SyncTransformFeedback() { | |||
| 1119 | 1119 | ||
| 1120 | void RasterizerOpenGL::SyncPointState() { | 1120 | void RasterizerOpenGL::SyncPointState() { |
| 1121 | const auto& regs = Core::System::GetInstance().GPU().Maxwell3D().regs; | 1121 | const auto& regs = Core::System::GetInstance().GPU().Maxwell3D().regs; |
| 1122 | 1122 | state.point.size = regs.point_size; | |
| 1123 | // TODO(Rodrigo): Most games do not set a point size. I think this is a case of a | ||
| 1124 | // register carrying a default value. For now, if the point size is zero, assume it's | ||
| 1125 | // OpenGL's default (1). | ||
| 1126 | state.point.size = regs.point_size == 0 ? 1 : regs.point_size; | ||
| 1127 | } | 1123 | } |
| 1128 | 1124 | ||
| 1129 | void RasterizerOpenGL::CheckAlphaTests() { | 1125 | void RasterizerOpenGL::CheckAlphaTests() { |