SFML community forums
Help => General => Topic started by: Metrobot on December 12, 2015, 05:22:04 pm
-
Hello
Kind of everything is okay, Game is Compiling and working, but form unknown reasons this message is appear in console.
(http://s11.postimg.org/iifjlwbgz/Screenshot.png)
Can someone tell me how to fix this? and what it's mean?
I am working on Ubuntu and Code::blocks with standard configuration with sfml i am also link sfml-audio in linker settings because of Audio module.
-
This message is relatively new. (from 2.3.2 ?)
It is a warning message that informs you that OpenGL failed to create the context that you requested.
There are currently two ways (of which I know) to stop this error message:
- make sure that all of context settings are explicity filled in and within range of the graphics card/driver you are using it on (this should be easy enough for your own card), or
- disable SFML's error stream (you only need to do this during the creation of the context/window so can be immediately restored)
I, personally, have taken to disabling the error stream as there's no easy way of finding out the maximum settings available before attempting to create the context.
An example of this can be found here (https://github.com/Hapaxia/SelbaWard/blob/master/examples/lineExample.cpp#L41-L47). The error stream disabling code (the three lines that wrap the context creation) has comments. Hope this helps.
If you would like to know more about the reasons behind this message, you can read this discussion about it (http://en.sfml-dev.org/forums/index.php?topic=18461.0).
-
Thanks for answer, yeah, this is latest version of SFML (2.3.2).
-
Is the message not expressive enough?
You request an anti-aliasing level of 12x, but your graphics driver only supports 8x.
-
So I noticed this, but before the UPDATE on the same hardware, it works with this settings.
-
It didn't work in earlier SFML versions, there was just no warning. The settings were downgraded silently.