mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix patches being turned inside-out by cliprect in GL
Turns out the reason the chat looks strange in LegacyGL is because of cliprect. This is a fix that was done by GenericHeroGuy for one of my other projects.
This commit is contained in:
parent
e6eaaebd89
commit
05de187667
1 changed files with 2 additions and 2 deletions
|
|
@ -267,8 +267,8 @@ void HWR_DrawStretchyFixedPatch(patch_t *gpatch, fixed_t x, fixed_t y, fixed_t p
|
|||
|
||||
cx = cx1;
|
||||
cy = cy1;
|
||||
fwidth = cx2 - cx1;
|
||||
fheight = cy2 - cy1;
|
||||
fwidth = fmaxf(0.0f, cx2 - cx1);
|
||||
fheight = fmaxf(0.0f, cy2 - cy1);
|
||||
}
|
||||
|
||||
// positions of the cx, cy, are between 0 and vid.width/vid.height now, we need them to be between -1 and 1
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue