Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ACGL
acgl
Commits
8fd50ec7
Commit
8fd50ec7
authored
Dec 19, 2013
by
Robert Menzel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed test for clang
parent
65e63f05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/ACGL/OpenGL/Objects/TextureBuffer.hh
include/ACGL/OpenGL/Objects/TextureBuffer.hh
+2
-2
No files found.
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
Markdown
is supported
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