Artiflash graphic's colors are corrupted

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
Blue Shadow
Posts: 4949
Joined: Sun Nov 14, 2010 12:59 am

Artiflash graphic's colors are corrupted

Post by Blue Shadow »

Tested with: 4.5pre-140-ge74b9f195 (latest as of this post)
Rendering API: OpenGL
Render mode: Hardware accelerated

When you use an item from your inventory in Heretic and Hexen, an animated graphic appears briefly in place of the used item on the status bar/HUD. The graphic's colors are drawn corrupted. The colors the graphic are drawn in aren't always the same, it seems; they differ if I start a new game, for example.

In GZDoom 4.3.3, the graphic appears fine.

Here's a screenshot demonstrating the problem:

[imgur]https://i.imgur.com/CX1AGZX[/imgur]


And here's my configuration file, in case it's needed:
gzdoom_portable.ini
User avatar
Player701
 
 
Posts: 1640
Joined: Wed May 13, 2009 3:15 am
Graphics Processor: nVidia with Vulkan support
Contact:

Re: Artiflash graphic's colors are corrupted

Post by Player701 »

Bisected down to this commit. There seem to be two issues at work here:
  1. The "artiflash" icon is drawn as a translatable image. However, the original graphics do not have any colors that correspond to the player's translatable color range. It is rather questionable why the DI_TRANSLATABLE flag is set for this call.
  2. The real bug: translatable images are not drawn properly in Heretic and Hexen since the aforementioned commit.
I'm currently investigating this issue further.
User avatar
Player701
 
 
Posts: 1640
Joined: Wed May 13, 2009 3:15 am
Graphics Processor: nVidia with Vulkan support
Contact:

Re: Artiflash graphic's colors are corrupted

Post by Player701 »

Found the problem: extra player translation tables were not fully initialized. Submitted a PR to fix this.
Post Reply

Return to “Closed Bugs [GZDoom]”