mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Make sure all error flags are cleared before calling glBufferDataARB() in VBO::load().
This commit is contained in:
@@ -194,8 +194,10 @@ namespace opengl
|
||||
// Copy the old buffer only if 'restore' was requested.
|
||||
const GLvoid *src = restore ? buffer_copy : 0;
|
||||
|
||||
while (GL_NO_ERROR != glGetError())
|
||||
/* clear error messages */;
|
||||
|
||||
// Note that if 'src' is '0', no data will be copied.
|
||||
glGetError();
|
||||
glBufferDataARB(getTarget(), getSize(), src, getUsage());
|
||||
GLenum err = glGetError();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user