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

Bugs that have been resolved.

Moderator: Graf Zahl

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
What I've got:
Screenshot_Doom_20141220_164645.png
You do not have the required permissions to view the files attached to this post.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany

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.

Return to “Closed Bugs”