Commit e0f431e5 authored by Felix Rath's avatar Felix Rath

fix an issue with binding cubemaps to framebuffer attachments

parent 22454183
......@@ -144,11 +144,11 @@ bool FrameBufferObject::attachColorAttachment( const Attachment &_attachment )
dimensionality = 3;
} else if (textureTarget == GL_TEXTURE_RECTANGLE) {
dimensionality = 2;
} else if (textureTarget == GL_TEXTURE_BINDING_CUBE_MAP) {
} else if (textureTarget == GL_TEXTURE_CUBE_MAP) {
dimensionality = 2;
textureTarget = _attachment.image.cubeMapFace;
#if (ACGL_OPENGL_VERSION >= 40)
} else if (textureTarget == GL_TEXTURE_BINDING_CUBE_MAP_ARRAY) {
} else if (textureTarget == GL_TEXTURE_CUBE_MAP_ARRAY) {
dimensionality = 3;
textureTarget = _attachment.image.cubeMapFace;
#endif // OpenGL 4.0+
......
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