Color cursor transparency appears to be broken with AMD GPUs on Linux
(fglrx driver). There’s a colored box around my cursor where there
should be transparency.
Currently there doesn’t appear to be a test program for this.
test_automation has some code but that doesn’t allow you to actually
see the results. Attached is a small program which allows you to switch
cursors. If you find it useful feel free to add it to tests. Just clean
it up and add error handling first
This works on Windows, Mac and Linux with Nvidia GPUs (binary driver).
Intel GPUs or free drivers not tested. Could someone with access to them
do that?
This looks like an AMD bug. Quick googling finds similar problem in
Legend of Grimrock:
http://www.grimrock.net/forum/viewtopic.php?f=12&t=4583
Does someone know who ported it and does it use SDL2?
Can SDL do anything about this or is the only recourse for AMD to fix
their driver?
Present in both 2.0.3 and latest Hg.
Also the wiki on SDL_CreateCursor is out of date. It doesn’t mention
SDL_CreateColorCursor and suggests drawing color cursors yourself.
-------------- next part --------------
A non-text attachment was scrubbed…
Name: cursorTest.c
Type: text/x-c++src
Size: 4577 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20140618/c0a5af0c/attachment.cc