Skip to content
Snippets Groups Projects
Commit bd3dfbab authored by Robert Menzel's avatar Robert Menzel
Browse files

added invalidateBufferData to the Buffer class

parent 26d2c589
No related branches found
No related tags found
No related merge requests found
......@@ -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 \/
// =================================================================================================== \/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment