[Libreoffice-commits] core.git: chart2/source
Stephan Bergmann
sbergman at redhat.com
Fri Feb 14 10:49:23 CET 2014
chart2/source/view/main/DummyXShape.cxx | 8 ++++++--
chart2/source/view/main/OpenGLRender.hxx | 7 +------
2 files changed, 7 insertions(+), 8 deletions(-)
New commits:
commit a5db34204957609df149aaee2330542cc8fdd7ad
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Feb 14 10:48:48 2014 +0100
Fix GLEW debug stuff for Windows
Change-Id: I5fd3df862b59a621af1e3f965abc9820dba08c3f
diff --git a/chart2/source/view/main/DummyXShape.cxx b/chart2/source/view/main/DummyXShape.cxx
index b8f4018..228cdac 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 239eaaa..a67309d 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>
More information about the Libreoffice-commits
mailing list