Browse Source

GL: cover the singular Framebuffer::mapForDraw() with tests as well.

pull/601/head
Vladimír Vondruš 3 years ago
parent
commit
7accf94c38
  1. 7
      src/Magnum/GL/Test/FramebufferGLTest.cpp

7
src/Magnum/GL/Test/FramebufferGLTest.cpp

@ -1107,6 +1107,13 @@ void FramebufferGLTest::multipleColorOutputs() {
MAGNUM_VERIFY_NO_GL_ERROR();
CORRADE_COMPARE(framebuffer.checkStatus(FramebufferTarget::Read), Framebuffer::Status::Complete);
CORRADE_COMPARE(framebuffer.checkStatus(FramebufferTarget::Draw), Framebuffer::Status::Complete);
/* Mapping just a single output. The comment re EXT_draw_buffers applies
here as well, so we can map just the 0th attachment, no other one. */
framebuffer.mapForDraw(Framebuffer::ColorAttachment{0});
MAGNUM_VERIFY_NO_GL_ERROR();
CORRADE_COMPARE(framebuffer.checkStatus(FramebufferTarget::Draw), Framebuffer::Status::Complete);
}
void FramebufferGLTest::clear() {

Loading…
Cancel
Save