Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 7 of 7

Thread: WGL_ARB_render_texture & multithread

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2005
    Posts
    5

    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

  2. #2
    Junior Member Newbie
    Join Date
    Apr 2005
    Posts
    5

    Re: WGL_ARB_render_texture & multithread

    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?

  3. #3
    Senior Member OpenGL Guru
    Join Date
    Dec 2000
    Location
    Reutlingen, Germany
    Posts
    2,052

    Re: WGL_ARB_render_texture & multithread

    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.
    GLIM - Immediate Mode Emulation for GL3

  4. #4
    Junior Member Newbie
    Join Date
    Apr 2005
    Posts
    5

    Re: WGL_ARB_render_texture & multithread

    Jan,

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

    thanks,
    jaded

  5. #5
    Member Regular Contributor
    Join Date
    Nov 2003
    Location
    Czech Republic
    Posts
    318

    Re: WGL_ARB_render_texture & multithread

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

  6. #6
    Junior Member Newbie
    Join Date
    Apr 2005
    Posts
    5

    Re: WGL_ARB_render_texture & multithread

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

  7. #7
    Senior Member OpenGL Guru
    Join Date
    May 2009
    Posts
    4,713

    Re: WGL_ARB_render_texture & multithread

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •