Skip to content

Commit

Permalink
Wall off more of OpenGL when it's not in use.
Browse files Browse the repository at this point in the history
  • Loading branch information
leikareipa committed Nov 8, 2018
1 parent 041d41b commit 6e038af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/qt/w_opengl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
*
*/

#ifdef USE_OPENGL

#include <QCoreApplication>
#include <QOpenGLWidget>
#include <QMatrix4x4>
Expand Down Expand Up @@ -87,3 +89,4 @@ void OGLWidget::paintGL()
return;
}

#endif
4 changes: 4 additions & 0 deletions src/qt/w_opengl.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
*
*/

#ifdef USE_OPENGL

#ifndef OGL_WIDGET_H
#define OGL_WIDGET_H

Expand All @@ -28,3 +30,5 @@ class OGLWidget : public QOpenGLWidget, protected QOpenGLFunctions_1_2
};

#endif

#endif

0 comments on commit 6e038af

Please sign in to comment.