diff options
Diffstat (limited to 'examples/opengl/sharedbox/glbox.cpp')
-rw-r--r-- | examples/opengl/sharedbox/glbox.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/opengl/sharedbox/glbox.cpp b/examples/opengl/sharedbox/glbox.cpp index f3ded8888..76163a712 100644 --- a/examples/opengl/sharedbox/glbox.cpp +++ b/examples/opengl/sharedbox/glbox.cpp @@ -57,18 +57,18 @@ void GLBox::initializeGL() sharedDisplayList = makeObject(); // Make one object = sharedDisplayList; // Use it sharedListUsers++; // Keep reference count - qDebug( "GLBox %s created shared display list.", name() ); + tqDebug( "GLBox %s created shared display list.", name() ); } else { // There is a shared diplay list if ( isSharing() ) { // Can we access it? object = sharedDisplayList; // Yes, use it sharedListUsers++; // Keep reference count - qDebug( "GLBox %s uses shared display list.", name() ); + tqDebug( "GLBox %s uses shared display list.", name() ); } else { localDisplayList = makeObject(); // No, roll our own object = localDisplayList; // and use that - qDebug( "GLBox %s uses private display list.", name() ); + tqDebug( "GLBox %s uses private display list.", name() ); } } } @@ -84,14 +84,14 @@ GLBox::~GLBox() makeCurrent(); // We're going to do gl calls if ( localDisplayList != 0 ) { // Did we make our own? glDeleteLists( localDisplayList, 1 ); // Yes, delete it - qDebug( "GLBox %s deleted private display list.", name() ); + tqDebug( "GLBox %s deleted private display list.", name() ); } else { sharedListUsers--; // No, we used the shared one; keep refcount if ( sharedListUsers == 0 ) { // Any sharers left? glDeleteLists( sharedDisplayList, 1 ); // No, delete it sharedDisplayList = 0; - qDebug( "GLBox %s deleted shared display list.", name() ); + tqDebug( "GLBox %s deleted shared display list.", name() ); } } } |