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

Author Topic: Created GL context does not meet requested  (Read 8516 times)

0 Members and 1 Guest are viewing this topic.

fer_t

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • Email
Created GL context does not meet requested
« on: January 17, 2017, 06:59:35 pm »
I am using 2.4.1 now and it seems something is broken, when trying to enable AA I get:
Quote
Warning: The created OpenGL context does not fully meet the settings that were requested
Requested: version = 1.1 ; depth bits = 0 ; stencil bits = 0 ; AA level = 8 ; core = false ; debug = false ; sRGB = false
Created: version = 3.0 ; depth bits = 0 ; stencil bits = 0 ; AA level = 0 ; core = false ; debug = false ; sRGB = false

I have attached the test file I used. The driver supports up to 8x AA (this worked last time I used it).
glGetIntegerv(GL_MAX_SAMPLES_EXT, &a);
Also returns 8.

I use an AMD 280x on openSUSE 42.1 Linux (opensource driver).
Does someone has an idea whats the problem?

binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1405
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
Re: Created GL context does not meet requested
« Reply #1 on: January 17, 2017, 07:42:53 pm »
That value only tells you the multi-sampling level supported by framebuffer object attachments... It has nothing to do with the surface formats the operating system provides for you to use. Enumerate those with the glxinfo command on a console and post the full output here.
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).

fer_t

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • Email
Re: Created GL context does not meet requested
« Reply #2 on: January 18, 2017, 01:38:07 am »
Enumerate those with the glxinfo command on a console and post the full output here.

Ok see attached file.

binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1405
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
Re: Created GL context does not meet requested
« Reply #3 on: January 18, 2017, 02:22:17 am »
I can reproduce this on my system using an AMD R9 380X and AMDGPU driver. Will fix as soon as possible.
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).

binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1405
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
Re: Created GL context does not meet requested
« Reply #4 on: January 18, 2017, 08:55:42 pm »
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).

fer_t

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • Email
Re: Created GL context does not meet requested
« Reply #5 on: January 23, 2017, 03:56:49 pm »
Thank you!
Using the last commit as patch worked for me!

I noticed it is now in the sfml master: https://github.com/SFML/SFML/commit/022f1590d815ff07a1ea70fc225446bb03abf698
« Last Edit: January 25, 2017, 03:56:15 pm by fer_t »

hobby

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Created GL context does not meet requested
« Reply #6 on: February 04, 2017, 08:48:40 am »
I'm using SFML version 2.4 with additional commits up to the XCB-->Xlib transition (inclusive), just before the contextless branch commit. Is this issue relevant also to this version?

I'm asking because I use AA but prefer to not upgrade unless necessary.

binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1405
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
Re: Created GL context does not meet requested
« Reply #7 on: February 05, 2017, 07:09:58 pm »
Yes... this issue is relevant to everything since at least 2.3.
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).

hobby

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Created GL context does not meet requested
« Reply #8 on: February 11, 2017, 04:09:36 pm »
I see, thanks!
Looking at the changes to GlxContext.cpp, it seems that the specific commit patch can be applied verbatim without a full upgrade, still on the version before the contextless branch commit. Will it stand a good chance of working?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10800
    • View Profile
    • development blog
    • Email
Re: Created GL context does not meet requested
« Reply #9 on: February 11, 2017, 04:34:29 pm »
What's holding you back from upgrading to 2.4.2?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Hapax

  • Hero Member
  • *****
  • Posts: 3346
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Created GL context does not meet requested
« Reply #10 on: February 11, 2017, 05:39:55 pm »
@eXpl0it3r, for a moment there, you made me think I'd missed a new release but it's not been announced on the forum yet ;D.
« Last Edit: February 11, 2017, 05:48:30 pm by Hapax »
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10800
    • View Profile
    • development blog
    • Email
Re: Created GL context does not meet requested
« Reply #11 on: February 11, 2017, 06:31:09 pm »
@eXpl0it3r, for a moment there, you made me think I'd missed a new release but it's not been announced on the forum yet ;D.
Well, it's announced now! :)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

hobby

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Created GL context does not meet requested
« Reply #12 on: October 06, 2018, 04:43:44 pm »
I'm afraid this issue still exists in SFML master in a non-determinisic way.

I get different availability of extensions and corresponding outputs of sf::err() for 32-bit and 64-bit Linux builds. This also affects RenderTexture (RenderTextureImplFBO works for me, RenderTextureImplDefault does not - seems to be related to GL contexts).
glxinfo lists all extensions as expected.

Ubuntu 16.04 Linux VM, HW accelerated (NV), hosted in Windows 7.
SFML master as of today.

32-bit build works, output of sf::err():
Setting vertical sync not supported

64-bit does not work, output of sf:err:
Warning: The created OpenGL context does not fully meet the settings that were requested
Requested: version = 1.1 ; depth bits = 0 ; stencil bits = 0 ; AA level = 0 ; core = false ; debug = false ; sRGB = false
Created: version = 0.0 ; depth bits = 24 ; stencil bits = 8 ; AA level = 0 ; core = false ; debug = false ; sRGB = false
Setting vertical sync not supported
sfml-graphics requires support for OpenGL 1.1 or greater
Ensure that hardware acceleration is enabled if available
OpenGL extension SGIS_texture_edge_clamp unavailable
Artifacts may occur along texture edges
Ensure that hardware acceleration is enabled if available






hobby

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Created GL context does not meet requested
« Reply #13 on: October 06, 2018, 10:01:36 pm »
Fixed the issue, created #1495. Even if the logic does not meet what you expect from OpenGL, it should be sound.