SFML community forums

Help => Window => Topic started by: mercurio7891 on April 30, 2011, 09:19:43 pm

Title: anyway to set the version sf:Context is created against?
Post by: mercurio7891 on April 30, 2011, 09:19:43 pm
Is there anyway to set the sf::Context to be created to a specific opengl version?? For e.g 4.0 or maybe 2.1

regards
Title: anyway to set the version sf:Context is created against?
Post by: Laurent on May 01, 2011, 01:04:00 am
Nop. But you shouldn't need that, sf::Context creates a dummy context, not a context which is used for actual rendering.
Title: anyway to set the version sf:Context is created against?
Post by: mercurio7891 on May 01, 2011, 04:24:49 am
if i try to load the 3.0 functions and above with glew within a sf::Context, it always fail. Hence I was wondering how to go about doing it.

Code: [Select]

sf::ThreadContext //stay alive for the duration of the thread

glewInit();

do some uploading of vbo, texture etc.


The actual render context is on another thread and is not exposed out

regards
Title: anyway to set the version sf:Context is created against?
Post by: Laurent on May 01, 2011, 10:52:14 am
I see. That's a valid point.

Task added:
https://github.com/SFML/SFML/issues/36