mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-15 22:54:00 +00:00
Merge pull request #2927 from ReinUsesLisp/polygon-offset-units
gl_rasterizer: Fix polygon offset units
This commit is contained in:
commit
6b5e50d20e
1 changed files with 3 additions and 1 deletions
|
@ -1340,7 +1340,9 @@ void RasterizerOpenGL::SyncPolygonOffset() {
|
||||||
state.polygon_offset.fill_enable = regs.polygon_offset_fill_enable != 0;
|
state.polygon_offset.fill_enable = regs.polygon_offset_fill_enable != 0;
|
||||||
state.polygon_offset.line_enable = regs.polygon_offset_line_enable != 0;
|
state.polygon_offset.line_enable = regs.polygon_offset_line_enable != 0;
|
||||||
state.polygon_offset.point_enable = regs.polygon_offset_point_enable != 0;
|
state.polygon_offset.point_enable = regs.polygon_offset_point_enable != 0;
|
||||||
state.polygon_offset.units = regs.polygon_offset_units;
|
|
||||||
|
// Hardware divides polygon offset units by two
|
||||||
|
state.polygon_offset.units = regs.polygon_offset_units / 2.0f;
|
||||||
state.polygon_offset.factor = regs.polygon_offset_factor;
|
state.polygon_offset.factor = regs.polygon_offset_factor;
|
||||||
state.polygon_offset.clamp = regs.polygon_offset_clamp;
|
state.polygon_offset.clamp = regs.polygon_offset_clamp;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue