Commit 8fd50ec7 authored by Robert Menzel's avatar Robert Menzel

fixed test for clang

parent 65e63f05
......@@ -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 );
......
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