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

Author Topic: SFML : how to enable core profile with mesa drivers.  (Read 10048 times)

0 Members and 2 Guests are viewing this topic.

Lolilolight

  • Hero Member
  • *****
  • Posts: 1232
    • View Profile
Re: SFML : how to enable core profile with mesa drivers.
« Reply #15 on: July 12, 2014, 07:18:12 pm »
I've created one!!!

I had just to set the sencil bit to 0 and the dephbit to a less value than 32.

sf::ContextSettings settings(24, 0, 4, 3, 3);
 

Because it seems it doesn't support all values for the buffers yet.

The graphics module of SFML is not compatible yet with this version of opengl, It's telling me that my system doesn't support shader (or it's the case!)
I hope it'll be compatible with sfml soon. :)


Lolilolight

  • Hero Member
  • *****
  • Posts: 1232
    • View Profile
Re: SFML : how to enable core profile with mesa drivers.
« Reply #16 on: July 12, 2014, 07:35:28 pm »
Ha, ok, the functions are not the same to create shaders with opengl 3.3. (and more)

I suppose that I've to rewrite a part of the SFML graphics module because I need to have a shader which support the 3.3 version at least. (With layout qualifiers)

binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1405
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
Re: SFML : how to enable core profile with mesa drivers.
« Reply #17 on: July 12, 2014, 07:38:04 pm »
I had just to set the sencil bit to 0 and the dephbit to a less value than 32.

sf::ContextSettings settings(24, 0, 4, 3, 3);
 
Here is what the console shows :

Code: [Select]
glxinfo | grep OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD CEDAR
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.3.0-devel (git-ee2a818 trusty-oibaf-ppa)
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 10.3.0-devel (git-ee2a818 trusty-oibaf-ppa)
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
So... you know how to use glxinfo but don't even bother reading the output? If you didn't immediately grep the output (you probably just copied the command from somewhere as well) you would notice a fairly long list of valid formats. From that information, you would see that 32-bit depth is not supported by your hardware, so you shouldn't even try to request it.

If you are really using Linux, the most important thing to do is learn to read things. It is much more textual than any other operating system and you will get nowhere if you don't bother inspecting what is printed out all over the place.

And please... now that you have solved the problem this thread dealt with, we don't need daily updates about your progress rewriting every bit of SFML.
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).