开发者

Does OpenGL not support shared contexts on windows?

开发者 https://www.devze.com 2022-12-26 02:07 出处:网络
I am working on a cross platform OpenGL project and it seems开发者_开发百科 that all of the textures that share a GLcontext have trouble when I try and load them in windows.I have been told that this

I am working on a cross platform OpenGL project and it seems开发者_开发百科 that all of the textures that share a GLcontext have trouble when I try and load them in windows. I have been told that this was not supported in older versions of OpenGL on windows but it seems that there must be some way to share texture resources in OpenGL on Windows. If there was no way to share textures between multiple objects in opengl on windows this would be an unbearable bottleneck for certain applications so I assume this limitation must have been overcome by now.


Of course it does. The method to use is called wglShareLists which is a bit confusing.

Each context will still have its own render state etc. This only applies to data.

0

精彩评论

暂无评论...
验证码 换一张
取 消