summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-04-08 01:17:16 +0200
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-04-08 04:38:22 +0200
commit0869626e2b29ad9b2e81c8f4eee7bd1b2372d91b (patch)
treebf80e1e7a0ec761d834aa22a412c4c4593ba507b /include
parentcall glewInit in vcl's OpenGLContext just once (diff)
downloadcore-0869626e2b29ad9b2e81c8f4eee7bd1b2372d91b.tar.gz
core-0869626e2b29ad9b2e81c8f4eee7bd1b2372d91b.zip
improve the code for temporary OpenGl context
Change-Id: Ia66bf54539e67066a56bb50fb606e50e581bee73
Diffstat (limited to 'include')
-rw-r--r--include/vcl/OpenGLContext.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/vcl/OpenGLContext.hxx b/include/vcl/OpenGLContext.hxx
index e84e8fc64a04..8c7eb5513c3b 100644
--- a/include/vcl/OpenGLContext.hxx
+++ b/include/vcl/OpenGLContext.hxx
@@ -10,6 +10,8 @@
#ifndef VCL_OPENGL_CONTEXT_HXX
#define VCL_OPENGL_CONTEXT_HXX
+#include <GL/glew.h>
+
#if defined( MACOSX )
#elif defined( UNX )
# include <prex.h>
@@ -21,8 +23,6 @@
# include "postwin.h"
#endif
-#include <GL/glew.h>
-
#if defined( _WIN32 )
#include <GL/glext.h>
#include <GL/wglext.h>