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 ) ...@@ -170,12 +170,12 @@ bool FrameBufferObject::attachColorAttachment( const Attachment &_attachment )
_attachment.texture->getObjectName(), _attachment.texture->getObjectName(),
_attachment.image.mipmapLevel ); _attachment.image.mipmapLevel );
} else if (dimensionality == 3) { } else if (dimensionality == 3) {
glFramebufferTexture3D( GL_FRAMEBUFFER, glFramebufferTextureLayer( GL_FRAMEBUFFER,
GL_COLOR_ATTACHMENT0 + realLocation, GL_COLOR_ATTACHMENT0 + realLocation,
textureTarget, _attachment.texture->getObjectName(),
_attachment.texture->getObjectName(), _attachment.image.mipmapLevel,
_attachment.image.layer, _attachment.image.layer
_attachment.image.mipmapLevel ); );
} else { } else {
Utils::error() << "attachColorAttachment failed, texture target not supported" << std::endl; Utils::error() << "attachColorAttachment failed, texture target not supported" << std::endl;
} }
......
Supports Markdown
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