Reputation: 39370
I recently started writing code that uses newer implementations of OpenGL. I did however notice, than in newer OpenGL implementations a lof of old functions are considered as deprecated. Is there any way to disable them if I only want to use proper functions?
Upvotes: 3
Views: 842
Reputation: 2158
You could compile using http://www.opengl.org/registry/api/gl3.h as suggested here: Forcing OpenGL Core Profile Only
Upvotes: 0
Reputation: 70116
Use ARB_create_context_profile and request a forward-compatible context.
Forward-compatible contexts are defined only for OpenGL versions 3.0 and later. They must not support functionality marked as deprecated by that version of the API, while a non-forward-compatible context must support all functionality in that version, deprecated or not.
Upvotes: 6