SFML community forums

Help => General => Topic started by: Paul on May 01, 2021, 01:53:07 pm

Title: "Failed to retrieve pixel format information" console message
Post by: Paul on May 01, 2021, 01:53:07 pm
After update to actual Radeon drivers (21.4.1) I have this message when running any SFML program with console.

It's also described by someone on Reddit https://www.reddit.com/r/sfml/comments/lowcus/error_message_on_window_creation/
Title: Re: "Failed to retrieve pixel format information" console message
Post by: eXpl0it3r on May 04, 2021, 09:44:34 am
This has already been fixed (https://github.com/SFML/SFML/pull/1789) on the master branch.

Build SFML from source (https://github.com/SFML/SFML) of grab a snapshot build (https://artifacts.sfml-dev.org/by-branch/master/)
Title: Re: "Failed to retrieve pixel format information" console message
Post by: Paul on May 04, 2021, 10:58:21 pm
Ok, thanks.
Title: Re: "Failed to retrieve pixel format information" console message
Post by: Zombieschannel on July 27, 2022, 11:46:47 pm
I had some similar issues in my program recently with some AMD specific GPUs where it said "Failed to retrieve pixel formation information" in the console.
Then I saw this post.
Since the new SFML 2.6 has been changed in many ways (things like removal of quads and removal of sf::Thread), I decided to build SFML with the fix.
And well, after testing, the pop up in the console did go away, however, sadly, textures are still broken as before.
It may be like 2 different problems (one of them being the textures broken and the other one message in the console), but I have no idea.

Here is an image:
https://cdn.discordapp.com/attachments/858417400918835230/1001966924017709106/unknown.png (https://cdn.discordapp.com/attachments/858417400918835230/1001966924017709106/unknown.png)

(hopefully you can see it, this is my first time uploading images to this forum)

AMD tested GPUs:
HD 5770 - works, no problems
RX 550 - doesn't work
Also it seems to not work on AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx

I guess it is because of drivers? Maybe?
Title: Re: "Failed to retrieve pixel format information" console message
Post by: Zombieschannel on September 13, 2022, 10:06:16 pm
Fixed the issue (still not sure what it was) by updating to unreleased SFML 2.6. I guess it has been fixed at some point during the development of 2.6  :)

PS: I also figured out that I was probably on the master branch so I thought that many things changed, but when in reality almost nothing was changed. Feel like an idiot now lol