[gzdoom-g2.1.pre-385] UDMF texture scale bug

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
User avatar
MaxED
Developer
Developer
Posts: 47
Joined: Fri Aug 03, 2012 0:06

[gzdoom-g2.1.pre-385] UDMF texture scale bug

Post by MaxED »

Looks like UDMF vertical texture scaling is broken when negative scale is used.

What I've expected:
negativescalebug (edit area) at 2014.12.20 16-47-04.457 [DEVBUILD].jpg
negativescalebug (edit area) at 2014.12.20 16-47-04.457 [DEVBUILD].jpg (98.45 KiB) Viewed 371 times
What I've got:
Screenshot_Doom_20141220_164645.png
Screenshot_Doom_20141220_164645.png (230.06 KiB) Viewed 371 times
Attachments
negativescalebug.wad
(9.12 KiB) Downloaded 38 times
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: [gzdoom-g2.1.pre-385] UDMF texture scale bug

Post by Graf Zahl »

Fixed. This was a simple case of badly applied texture clamping. For negative scales the texture ended up in texture coordinate range [-1..0] where only [0..1] would work. The code to correct this was already there for camera textures (which are created upside down due to OpenGL's nature) but was missing for normal ones.
Locked

Return to “Closed Bugs”