summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-02-14 10:48:48 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-02-14 10:48:57 +0100
commita5db34204957609df149aaee2330542cc8fdd7ad (patch)
treee8db1f66af8a367daf318c4e0181ffb514d9a4a0 /chart2
parentbbe3bec949764b7085b688d492af4759a496a80c (diff)
Fix GLEW debug stuff for Windows
Change-Id: I5fd3df862b59a621af1e3f965abc9820dba08c3f
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/main/DummyXShape.cxx8
-rwxr-xr-xchart2/source/view/main/OpenGLRender.hxx7
2 files changed, 7 insertions, 8 deletions
diff --git a/chart2/source/view/main/DummyXShape.cxx b/chart2/source/view/main/DummyXShape.cxx
index b8f40180b1d6..228cdacbb84e 100644
--- a/chart2/source/view/main/DummyXShape.cxx
+++ b/chart2/source/view/main/DummyXShape.cxx
@@ -1144,8 +1144,12 @@ int oglErrorHandler( Display* /*dpy*/, XErrorEvent* /*evnt*/ )
namespace {
-void debug_callback(GLenum source, GLenum type, GLuint id,
- GLenum severity, GLsizei , const GLchar* message, void* )
+extern "C" void
+#if defined _WIN32
+APIENTRY
+#endif
+debug_callback(GLenum source, GLenum type, GLuint id,
+ GLenum severity, GLsizei , const GLchar* message, GLvoid* )
{
SAL_WARN("chart2.opengl", "OpenGL debug message: source: " << source << ", type: "
<< type << ", id: " << id << ", severity: " << severity << " with message: " << message);
diff --git a/chart2/source/view/main/OpenGLRender.hxx b/chart2/source/view/main/OpenGLRender.hxx
index 239eaaa94dbe..a67309dc83ac 100755
--- a/chart2/source/view/main/OpenGLRender.hxx
+++ b/chart2/source/view/main/OpenGLRender.hxx
@@ -18,12 +18,7 @@
# include "postwin.h"
#endif
-#if defined( MACOSX )
-# include <GL/glew.h>
-#else
-# include <GL/gl.h>
-# include <GL/glu.h>
-#endif
+#include <GL/glew.h>
#include <vcl/window.hxx>
#include <vcl/syschild.hxx>