The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Android rendering messed up (all red) on Mali-400MP4 GPU
m3xican


Joined: 07 Oct 2010
Posts: 21
Location: London, UK
Hi everyone,

I've just started a closed beta for my game Sim Betting Football, which is based on SDL 2 (2.0.3) and one of the testers reported a very weird behaviour when running the game on a Samsung S3 (Android 4.3).

Basically every colour is turned into red as showed in the following pics:

and


The most weird thing is that if he takes a screenshot the images come up with the right colours.

I did some digging on Google and found other games suffer the same bug, for example openXcom.
That guy was experiencing this problem on a Galaxy Note 10.1 which has a Mali-400MP4 as GPU, the same used by the S3.
My game works fine on a Sony Xperia U with a Mali-400 instead. So it seems to be very specific to that particular GPU.

Any idea how to fix this?
m3xican


Joined: 07 Oct 2010
Posts: 21
Location: London, UK
I was pointed out in the ML that this is a well known SDL 2 bug and that possible workarounds can be found in this bug report.

I'll post an update when/if I can fix it in my game.
m3xican


Joined: 07 Oct 2010
Posts: 21
Location: London, UK
Confirmed fix and more comments in this other post (which is created from the mailing list).