Created attachment 117696 [details]
screenshot in the PA menu
the cursor is a big white square in planetary annihilation. (see screenshot attached).
only the blue arrow should be seen, the white square should be transparent.
HW is radeon HD 7950 with radeonsi driver
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD TAHITI
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.6.4
OpenGL core profile shading language version string: 3.30
thread on uber forum :
tried to add Option "SWCursor" "True" to xorg.conf, but doesn't have any visible effect.
Does the app use the hw cursor or draw it's own?
according to the last post of this thread :
the post is a bit old, so I'm not sure it's still 100% accurate :
one of the dev said:"For the cursor we use the standard XCursor library with calls like XcursorImageLoadCursor. We could hide the system cursor and compose the cursor image ourselves but that has a couple of downsides, primarily that it adds more lag between when the mouse moves and when the cursor moves."
by the way, there was a mod that fixed the cursor issue with mesa drivers. but it's not working with recent build.
also it's working with nvidia binary driver. So I'm still unsure if this bug is in the driver or in the game, or in a lib between them.
on a side note, I tried to record a trace with apitrace, but it doesn't record the cursor.
Created attachment 117701 [details]
I found a good workaround. the issue is with cursor.png.
I edited the cursor.png with gimp, and paint the "transparent square" with black and then save with "save color of transparent pixel" checked and now it works !
attached the modified cursor.png
just copy it to SteamApps/common/Planetary Annihilation/media/ui/main/game/live_game/img/cursors/cursor.png and voila
so for some reason mesa/xcursor or radeonsi think transparent pixels with white color are not transparent. (red are partialy transparent, and black are completely transparent).
I attached the two cursor.png file, so it can be tested/reproduced easily.
Created attachment 117702 [details]
original cursor from PA
this png has white transparent pixels, which are not transparent with xorg.
Sounds like it may be a Planetary Annihilation bug, the cursor data it's feeding to the XCursor library may not use proper pre-multiplied alpha as expected.
Fixed in latest Planetary Annihilation update.
release note include :
"Fix some cursors on certain Linux drivers"