Jump to content
  • Advertisement
Sign in to follow this  
subi211

wglSwapIntervalEXT on Linux

This topic is 3675 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Not as loony as it sounds. I'm porting an OGL app from Windows to Linux, and to my surprise the driver (ATI's fglrx 2.1.7412 on a Radeon HD 2400 XT) claims via glGetString(GL_EXTENSIONS) to support WGL_EXT_swap_control. Brilliant, I think. So I declare the function prototypes manually and call glXGetProcAddress("wglSwapIntervalEXT"). Sadly, this returns NULL. So I try "glSwapIntervalEXT", which does return a function ptr, but causes a seg fault when I try and call it. So, am I doing something wrong here? Or are ATI just lying?

Share this post


Link to post
Share on other sites
Advertisement
try glXSwapIntervalSGI . (requires GLX_SGI_swap_control)


[Edited by - Kambiz on November 18, 2008 6:44:36 AM]

Share this post


Link to post
Share on other sites
No sign of GLX_SGI_swap_control, but the ptr to glXSwapIntervalSGI is there, and works. Looks like ATI stuck the wrong string in their GL_EXTENSIONS string!

Thanks!

Share this post


Link to post
Share on other sites
Yes, WGL extensions are windows only, seems like they have put WGL_EXT_swap_control instead of GLX_SGI_swap_control into the extension string. With my nvidia card I get GLX_SGI_swap_control under linux and WGL_EXT_swap_control under windows.

Share this post


Link to post
Share on other sites
Yeah, I thought it was a bit weird. I get GL_WIN_swap_hint under Linux as well, and I bet that's not real either. ;)

BTW, is there anything similar to WGL_EXT_extensions_string or WGL_ARB_extensions_string I should look out for as well?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!