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 2 of 2

Thread: WGL_EXT_swap_control extension present? to activate it?

Hybrid View

  1. #1
    Newbie Newbie
    Join Date
    Jul 2013
    Posts
    1

    WGL_EXT_swap_control extension present? to activate it?

    Hi,
    in my multiplatform OpenGL application, i require WGL_EXT_swap_control extension capability.
    I have it running properly on Linux and MacOSX.

    In WinXP and Win7, glGetString(GL_EXTENSIONS) returns null (i still dont kwno why), so,
    - how to know if WGL_EXT_swap_control extension is present?
    - how to enable it?

    regards
    dani

  2. #2
    Junior Member Regular Contributor
    Join Date
    Dec 2009
    Posts
    206
    Quote Originally Posted by danipellex View Post
    Hi,
    in my multiplatform OpenGL application, i require WGL_EXT_swap_control extension capability.
    I have it running properly on Linux and MacOSX.

    In WinXP and Win7, glGetString(GL_EXTENSIONS) returns null (i still dont kwno why), so,
    - how to know if WGL_EXT_swap_control extension is present?
    - how to enable it?

    regards
    dani
    glGetString(GL_EXTENSIONS) is usually only NULL when you have no current OpenGL context. Also WGL_EXT_swap_control is not a GL extension, but a WGL extension, so you should use wglGetExtensionsStringEXT to query if it is available.

    This is the only WGL extension that is also available in the GL_EXTENSIONs for historical reasons, so your code would work, but better do it right.

    As it is an WGL extension, it's also clear that it is not available on non-Windows OSes, but there is an equivalent GLX_EXT_swap_control extension.


Posting Permissions

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