Commit 198c5888 authored by Robert Menzel's avatar Robert Menzel
Browse files
parents 8ddc91c5 ae58980c
......@@ -170,12 +170,12 @@ bool FrameBufferObject::attachColorAttachment( const Attachment &_attachment )
_attachment.texture->getObjectName(),
_attachment.image.mipmapLevel );
} else if (dimensionality == 3) {
glFramebufferTexture3D( GL_FRAMEBUFFER,
GL_COLOR_ATTACHMENT0 + realLocation,
textureTarget,
_attachment.texture->getObjectName(),
_attachment.image.layer,
_attachment.image.mipmapLevel );
glFramebufferTextureLayer( GL_FRAMEBUFFER,
GL_COLOR_ATTACHMENT0 + realLocation,
_attachment.texture->getObjectName(),
_attachment.image.mipmapLevel,
_attachment.image.layer
);
} else {
Utils::error() << "attachColorAttachment failed, texture target not supported" << std::endl;
}
......
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