cginternals / globjects

C++ library strictly wrapping OpenGL objects.
https://globjects.org
MIT License
538 stars 59 forks source link

Add wrappers to invalidate buffer data & texture images #287

Closed j-o closed 9 years ago

j-o commented 9 years ago

Problem: glInvalidateBuffer[Sub]Data functions require direct state access and don't have equivalents in the legacy implementation; the current solution simply logs a critical error message then. How would you handle this?

scheibel commented 9 years ago

The changes seems fine. Do you have already tested the implementations?

I'm not sure how to uniformly handle the missing OpenGL functions for fallback implementations, but for now, your solution suffices.