| 1244 | } // drawPersistentMessage |
| 1245 | |
| 1246 | void |
| 1247 | ViewerGL::initializeGL() |
| 1248 | { |
| 1249 | // always running in the main thread |
| 1250 | assert( qApp && qApp->thread() == QThread::currentThread() ); |
| 1251 | appPTR->initializeOpenGLFunctionsOnce(); |
| 1252 | makeCurrent(); |
| 1253 | if ( !appPTR->isOpenGLLoaded() ) { |
| 1254 | throw std::runtime_error("OpenGL was not loaded"); |
| 1255 | } |
| 1256 | _imp->initializeGL(); |
| 1257 | } |
| 1258 | |
| 1259 | GLuint |
| 1260 | ViewerGL::getPboID(int index) |
nothing calls this directly
no test coverage detected