Project

General

Profile

Bug #724

PNG texture makes jHeretic crashes starting episode 1

Added by flaviok almost 15 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
2009-07-02
% Done:

100%


Description

I have a file named 'data.zip' that contains a PNG texture. I load it as the only add-on in Snowberry and start Heretic. The game starts normally, but when I start episode 1, the game crashes.
I can view that texture wth no problem with programs like the Windows image viewer, GIMP or IrfanView.
If I re-save it with i.e. GIMP making no changes at all, the crash doesn't happen.

Labels: jHeretic

History

#2 Updated by skyjake almost 15 years ago

Upon first examination it seems that it crashes because PNG_Load() does not have the palette information from the attached 256-color paletted PNG. Maybe PNG_Load() is doing something wrong, as the image is shown correctly elsewhere.

#3 Updated by skyjake almost 15 years ago

Fixed for 1.9.0-beta6.4. PNG_Load() didn't treat grayscale PNGs correctly -- it assumed they were paletted images instead.

Also available in: Atom PDF