Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GLEW and openGL deprecation

I am using openGL and glew to check the extensions.

Say I wanted to check if I could use multitexture extension:

GLEW_ARB_multitexture will return true if I can use it.

BUT

arb_multitexture was deprecated in openGL 3.0.

Will it still return true?

What about in 3.1 where it was removed?

Thanks.

like image 990
Pubby Avatar asked Oct 25 '22 21:10

Pubby


1 Answers

It'll return true if your context exports the extension, which it will if it's not "forward-compatible" or "core profile", or possibly if it supports the "GL_ARB_compatibility" extension.

The bottom line is, if GLEW_ARB_multitexture is true, you can use the functionality. Any higher-level logic (like only using shaders if they're available) is up to you.

like image 171
OneSadCookie Avatar answered Oct 27 '22 11:10

OneSadCookie