Eric3
1
Hi,
I see that, currently, there is no way to release a gl context in the
SDL1.3 branch.
This would be a useful feature for people who want to render in a
different thread and not have to go through platform specific code.
A new function could be added, or maybe SDL could expose a 'NULL’
SDL_GLContext to pass to SLD_GL_MakeCurrent to release the context?
Eric
Hi,
I see that, currently, there is no way to release a gl context in the
SDL1.3 branch.
I’m not sure what you mean…
To make the current context NULL, you can do:
SDL_GL_MakeCurrent(0, NULL);
To delete the context, you can do:
SDL_GL_DeleteContext(context);
In fact, to clean up a context you must do both, as shown in SDL_compat.c
See ya,
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment
Eric3
3
Oh. I missed that. I did not think you could pass NULL to
SDL_GL_MakeCurrent and remove the context from the current thread.
That’s all I wanted SDL 1.3 will be great!
Sam Lantinga wrote:>> Hi,
I see that, currently, there is no way to release a gl context in the
SDL1.3 branch.
I’m not sure what you mean…
To make the current context NULL, you can do:
SDL_GL_MakeCurrent(0, NULL);
To delete the context, you can do:
SDL_GL_DeleteContext(context);
In fact, to clean up a context you must do both, as shown in SDL_compat.c
See ya,
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment