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
8fd50ec7
Commit
8fd50ec7
authored
Dec 19, 2013
by
Robert Menzel
Browse files
fixed test for clang
parent
65e63f05
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/ACGL/OpenGL/Objects/TextureBuffer.hh
View file @
8fd50ec7
...
...
@@ -59,7 +59,7 @@ public:
//! the GL buffer can get changed at any time
void
setBufferObject
(
SharedBufferObject
_pBuffer
)
{
Buffer
::
setBufferObject
(
_pBuffer
);
if
(
_pBuffer
==
NULL
)
{
if
(
!
_pBuffer
)
{
// detach all buffers:
glTexBuffer
(
GL_TEXTURE_BUFFER
,
mDataType
,
0
);
}
else
{
...
...
@@ -87,7 +87,7 @@ private:
void
bind
()
{}
void
attachBufferToTexture
()
{
if
(
mBuffer
==
NULL
)
{
if
(
!
mBuffer
)
{
// the buffer was in fact detached
bindTexture
();
glTexBuffer
(
GL_TEXTURE_BUFFER
,
mDataType
,
0
);
...
...
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