Kaydet (Commit) a5db3420 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Fix GLEW debug stuff for Windows

Change-Id: I5fd3df862b59a621af1e3f965abc9820dba08c3f
üst bbe3bec9
...@@ -1144,8 +1144,12 @@ int oglErrorHandler( Display* /*dpy*/, XErrorEvent* /*evnt*/ ) ...@@ -1144,8 +1144,12 @@ int oglErrorHandler( Display* /*dpy*/, XErrorEvent* /*evnt*/ )
namespace { namespace {
void debug_callback(GLenum source, GLenum type, GLuint id, extern "C" void
GLenum severity, GLsizei , const GLchar* message, 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: " SAL_WARN("chart2.opengl", "OpenGL debug message: source: " << source << ", type: "
<< type << ", id: " << id << ", severity: " << severity << " with message: " << message); << type << ", id: " << id << ", severity: " << severity << " with message: " << message);
......
...@@ -18,12 +18,7 @@ ...@@ -18,12 +18,7 @@
# include "postwin.h" # include "postwin.h"
#endif #endif
#if defined( MACOSX ) #include <GL/glew.h>
# include <GL/glew.h>
#else
# include <GL/gl.h>
# include <GL/glu.h>
#endif
#include <vcl/window.hxx> #include <vcl/window.hxx>
#include <vcl/syschild.hxx> #include <vcl/syschild.hxx>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment