Commit bd3dfbab authored by Robert Menzel's avatar Robert Menzel

added invalidateBufferData to the Buffer class

parent 26d2c589
......@@ -344,6 +344,16 @@ public:
*/
virtual inline void setTarget( GLenum _target ) { mTarget = _target; }
/**
* @brief invalidateBufferData is a performance optimization and will invalidate the whole
* buffer. Before GL 4.3 this is a NO-OP.
*/
void invalidateBufferData() {
#if (ACGL_OPENGL_VERSION >= 43)
glInvalidateBufferData( getObjectName() );
#endif
}
// =================================================================================================== \/
// ============================================================================================ FIELDS \/
// =================================================================================================== \/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment