Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I explicitly disable deprecated OpenGL functions in my code?

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?

like image 373
Bartek Banachewicz Avatar asked Dec 11 '25 21:12

Bartek Banachewicz


1 Answers

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.

like image 175
Damon Avatar answered Dec 14 '25 13:12

Damon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!