New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenGL Extension Caching #1597

Merged
merged 3 commits into from May 24, 2016

Conversation

Projects
None yet
4 participants
@JeffProgrammer
Contributor

JeffProgrammer commented May 7, 2016

This caches OpenGL extensions that are not part of the core profile. It uses a struct of Boolean values to avoid function call overhead as @rextimmy suggestion. Extensions that run during initalization are not cached, as there really is no reason to as of now. It is fairly easy to add more extensions to the cache as needed.

This PR also removes the old extensions that are no longer needed.

Finally, it replaces a call of glGenMipmapEXT to glGenMipmap, as we are in the core profile now!

@JeffProgrammer JeffProgrammer changed the title from Glextlookup to OpenGL Extension Caching May 7, 2016

@JeffProgrammer

This comment has been minimized.

Show comment
Hide comment
@JeffProgrammer

JeffProgrammer May 7, 2016

Contributor

Also I meant 3.2 on my description of the last commit, sorry!!

Contributor

JeffProgrammer commented May 7, 2016

Also I meant 3.2 on my description of the last commit, sorry!!

@dottools

This comment has been minimized.

Show comment
Hide comment
@dottools

dottools May 7, 2016

Uh oh tabs vs spaces indention strikes again. ;)

dottools commented May 7, 2016

Uh oh tabs vs spaces indention strikes again. ;)

@Areloch

This comment has been minimized.

Show comment
Hide comment
@Areloch

Areloch May 20, 2016

Contributor

Seems to work fine.

Contributor

Areloch commented May 20, 2016

Seems to work fine.

@JeffProgrammer

This comment has been minimized.

Show comment
Hide comment
@JeffProgrammer

JeffProgrammer May 20, 2016

Contributor

great to hear!

Contributor

JeffProgrammer commented May 20, 2016

great to hear!

@Areloch Areloch merged commit 5ee1fb3 into GarageGames:development May 24, 2016

@BadFactor

This comment has been minimized.

Show comment
Hide comment
@BadFactor

BadFactor May 24, 2016

Wich Version of OpenGL is it ? If I'm not wrong, there isnt any description of it!

BadFactor commented May 24, 2016

Wich Version of OpenGL is it ? If I'm not wrong, there isnt any description of it!

@JeffProgrammer

This comment has been minimized.

Show comment
Hide comment
@JeffProgrammer

JeffProgrammer Jun 15, 2016

Contributor

@BadFactor OpenGL 3.2 core profile is the min. required to run Torque3d 3.9.

Contributor

JeffProgrammer commented Jun 15, 2016

@BadFactor OpenGL 3.2 core profile is the min. required to run Torque3d 3.9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment