SFML community forums

Help => General => Topic started by: Metrobot on December 12, 2015, 05:22:04 pm

Title: Strange message when compiling
Post 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.

Title: Re: Strange message when compiling
Post by: Hapax on December 12, 2015, 05:46:14 pm
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:

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).
Title: Re: Strange message when compiling
Post by: Metrobot on December 12, 2015, 05:57:45 pm
Thanks for answer, yeah, this is latest version of SFML (2.3.2).
Title: Re: Strange message when compiling
Post by: Nexus on December 12, 2015, 06:02:31 pm
Is the message not expressive enough?

You request an anti-aliasing level of 12x, but your graphics driver only supports 8x.
Title: Re: Strange message when compiling
Post by: Metrobot on December 12, 2015, 06:08:52 pm
So I noticed this, but before the UPDATE on the same hardware, it works with this settings.
Title: Re: Strange message when compiling
Post by: Nexus on December 12, 2015, 06:09:47 pm
It didn't work in earlier SFML versions, there was just no warning. The settings were downgraded silently.