Commit fa0e4ac5 authored by Martin Schultz's avatar Martin Schultz

use acg for extension checks to avoid problems with different opengl versions

parent 054a4dd5
......@@ -65,13 +65,13 @@ void MemInfoPlugin::initializePlugin()
void MemInfoPlugin::pluginsInitialized() {
// Check extension for NVIDIA memory information
QString glExtensions = QString((const char*)glGetString(GL_EXTENSIONS));
// QString glExtensions = QString((const char*)glGetString(GL_EXTENSIONS));
updateTimer_ = new QTimer();
updateTimer_->setSingleShot(false);
// NVIDIA cards
if ( glExtensions.contains("GL_NVX_gpu_memory_info") ) {
if ( ACG::checkExtensionSupported("GL_NVX_gpu_memory_info") ) {
// emit log(LOGINFO,"NVIDIA card Memory info supported, installing gpu memory monitor into status bar");
......
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