WGL_ARB_render_texture & multithread

WGL_ARG_render_texture spec does not mention how to handle multithread. If application call wglBindTexImageARB(hPbuffer, xx) to gc’s texObj1 in thread1, later it call wglReleaseTexImageARB in another thread(thread2), but maybe gc is still running within thread1, what will happen for this case?

I didn’t find any clues for such case?

Can anyone give me some hints?

thanks,
jaded

per WGL_ARB_render_texture, wglReleaseTexImageARB just like glTexImage with zero width which means it just like an opengl api. But context is single-threaded. so how to handle it?

That’s pbuffer stuff and no one uses pbuffers anymore. Use framebuffer objects (ARB_framebuffer_object - FBO for short).

I think the spec also talks a little bit about multithreading, not much though.

Jan.

Jan,

Can you point out where of the spec talk about multithreading?

thanks,
jaded

Do not try multi-threading with FBO on NVIDIA.
It is reliable crash dump generator.

actually, i just want to know how to handle multithreading of arb_render_texture in driver.

actually, i just want to know how to handle multithreading of arb_render_texture in driver.

You don’t. You shouldn’t be using ARB_render_texture to begin with. And you can’t really multithread OpenGL in the way you are trying.