Browse Source

GL: no need to bind a buffer to do a DSA operation.

Breaindead copypaste error. Sorry for being shitty here.
pull/255/head
Vladimír Vondruš 8 years ago
parent
commit
00c0aa468e
  1. 4
      src/Magnum/GL/AbstractFramebuffer.cpp

4
src/Magnum/GL/AbstractFramebuffer.cpp

@ -514,22 +514,18 @@ void AbstractFramebuffer::clearImplementationDefault(const GLenum buffer, const
#ifndef MAGNUM_TARGET_GLES
void AbstractFramebuffer::clearImplementationDSA(const GLenum buffer, const GLint drawbuffer, const GLint* const value) {
bindInternal(FramebufferTarget::Draw);
glClearNamedFramebufferiv(_id, buffer, drawbuffer, value);
}
void AbstractFramebuffer::clearImplementationDSA(const GLenum buffer, const GLint drawbuffer, const GLuint* const value) {
bindInternal(FramebufferTarget::Draw);
glClearNamedFramebufferuiv(_id, buffer, drawbuffer, value);
}
void AbstractFramebuffer::clearImplementationDSA(const GLenum buffer, const GLint drawbuffer, const GLfloat* const value) {
bindInternal(FramebufferTarget::Draw);
glClearNamedFramebufferfv(_id, buffer, drawbuffer, value);
}
void AbstractFramebuffer::clearImplementationDSA(const GLenum buffer, const GLfloat depth, const GLint stencil) {
bindInternal(FramebufferTarget::Draw);
glClearNamedFramebufferfi(_id, buffer, 0, depth, stencil);
}
#endif

Loading…
Cancel
Save