Skip to content

Fix bug in OpenGL encore colormaps

Hannu Hanhi requested to merge bird/Kart-Public:ogl-encore-color-fix into master

This fixes wrong encore mode colors in OpenGL in Virtual Highway and Paradise Hill and various other maps.

Wrong kind of values were passed into NearestColor, resulting in encore colormaps getting the wrong colors. (mostly red and black)

The bugfix was discovered by Guil, and I cleaned up the code a bit further to use RGBA_t.

Edited by Hannu Hanhi

Merge request reports