equal
deleted
inserted
replaced
414 was called, or to another QGLContext that is sharing with it. |
414 was called, or to another QGLContext that is sharing with it. |
415 Otherwise, false will be returned from this function. |
415 Otherwise, false will be returned from this function. |
416 |
416 |
417 \sa release(), create() |
417 \sa release(), create() |
418 */ |
418 */ |
419 bool QGLBuffer::bind() const |
419 bool QGLBuffer::bind() |
420 { |
420 { |
421 #ifndef QT_NO_DEBUG |
421 #ifndef QT_NO_DEBUG |
422 if (!isCreated()) |
422 if (!isCreated()) |
423 qWarning("QGLBuffer::bind(): buffer not created"); |
423 qWarning("QGLBuffer::bind(): buffer not created"); |
424 #endif |
424 #endif |
446 This function must be called with the same QGLContext current |
446 This function must be called with the same QGLContext current |
447 as when bind() was called on the buffer. |
447 as when bind() was called on the buffer. |
448 |
448 |
449 \sa bind() |
449 \sa bind() |
450 */ |
450 */ |
451 void QGLBuffer::release() const |
451 void QGLBuffer::release() |
452 { |
452 { |
453 #ifndef QT_NO_DEBUG |
453 #ifndef QT_NO_DEBUG |
454 if (!isCreated()) |
454 if (!isCreated()) |
455 qWarning("QGLBuffer::release(): buffer not created"); |
455 qWarning("QGLBuffer::release(): buffer not created"); |
456 #endif |
456 #endif |