Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ACGL
acgl
Commits
ae58980c
Commit
ae58980c
authored
Jul 02, 2013
by
Felix Rath
Browse files
FrameBufferObject::attachColorAttachment: use glFramebufferTextureLayer
instead of glFramebufferTexture3D. Reason: Texture 2D Arrays.
parent
1edb41a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ACGL/OpenGL/Objects/FrameBufferObject.cc
View file @
ae58980c
...
...
@@ -170,12 +170,12 @@ bool FrameBufferObject::attachColorAttachment( const Attachment &_attachment )
_attachment
.
texture
->
getObjectName
(),
_attachment
.
image
.
mipmapLevel
);
}
else
if
(
dimensionality
==
3
)
{
glFramebufferTexture
3D
(
GL_FRAMEBUFFER
,
GL_COLOR_ATTACHMENT0
+
realLocation
,
textureTarget
,
_attachment
.
texture
->
getObjectName
()
,
_attachment
.
image
.
layer
,
_attachment
.
image
.
mipmapLevel
);
glFramebufferTexture
Layer
(
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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment