I'm using RmlUi 6.1 with the OpenGL backend, and any TGA image I load — either in an <img> tag or as a decorator — renders incorrectly.
Instead of displaying normally, the image looks torn, stretched, or split into four parts, like this:
Example code:
Using an <img> tag:
<img id="bg" src="testimage.tga" />
Or via RCSS:
body {
decorator: image("testimage.tga" fill);
}
In both cases, the image is visible but heavily distorted.
What I’ve tried:
- Exported as uncompressed 24-bit and uncompressed 32-bit TGA (with and without alpha).
- Used several tools to convert (ImageMagick, online converters, etc.).
- Confirmed the same result with multiple images and formats.
RmlUi’s documentation mentions support for uncompressed 24-bit or 32-bit TGA files, but no matter which I use, the output looks broken as in the screenshot.
Question:
Is there a known issue or limitation with TGA decoding in RmlUi 6.1’s OpenGL backend, or is there a specific export setting (byte order, origin, etc.) required for TGA files to display correctly?
