Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Strange message when compiling  (Read 2001 times)

0 Members and 2 Guests are viewing this topic.

Metrobot

  • Newbie
  • *
  • Posts: 3
    • View Profile
Strange message when compiling
« 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.



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.

« Last Edit: December 12, 2015, 05:28:04 pm by Metrobot »

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Strange message when compiling
« Reply #1 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:
  • 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. 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.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

Metrobot

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Strange message when compiling
« Reply #2 on: December 12, 2015, 05:57:45 pm »
Thanks for answer, yeah, this is latest version of SFML (2.3.2).
« Last Edit: December 12, 2015, 06:01:28 pm by Metrobot »

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Strange message when compiling
« Reply #3 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.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Metrobot

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Strange message when compiling
« Reply #4 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.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Strange message when compiling
« Reply #5 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.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: