diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-07-16 08:02:32 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-07-16 14:58:39 +0200 |
commit | cc1bea8692ad44dcc795766118b4b75c690e2655 (patch) | |
tree | aad060f6793d001dd2b235c2ff6f764961e12968 /include | |
parent | 51ba2df1cb29d4343f92174da6dc8f36ba9152eb (diff) |
first part of OpenGL context work for OSX
Context is correctly created and the OpenGL calls no longer crash but it seems that I still have a buffer problem so nothing is shown on the screen.
Change-Id: Ia9cc585cd92c6049197dbfa47a41e30e130739ed
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/opengl/OpenGLContext.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/vcl/opengl/OpenGLContext.hxx b/include/vcl/opengl/OpenGLContext.hxx index 94c70f30c2e1..0dc0fa5d987b 100644 --- a/include/vcl/opengl/OpenGLContext.hxx +++ b/include/vcl/opengl/OpenGLContext.hxx @@ -30,6 +30,7 @@ #include <GL/glext.h> #include <GL/wglext.h> #elif defined( MACOSX ) +#include <OpenGL/OpenGL.h> #elif defined( IOS ) #elif defined( ANDROID ) #elif defined( UNX ) @@ -90,6 +91,7 @@ struct GLWindow HDC hDC; HGLRC hRC; #elif defined( MACOSX ) + CGLContextObj context; #elif defined( IOS ) #elif defined( ANDROID ) #elif defined( UNX ) |