mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-14 05:21:48 +08:00
Fixed build on non Windows systems
This commit is contained in:
parent
38683ee221
commit
1fdb927b56
@ -274,7 +274,11 @@ OpenGLManager::~OpenGLManager()
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if ENABLE_OPENGL_DEBUG_OPTION
|
#if ENABLE_OPENGL_DEBUG_OPTION
|
||||||
|
#ifdef _WIN32
|
||||||
static void APIENTRY CustomGLDebugOutput(GLenum source, GLenum type, unsigned int id, GLenum severity, GLsizei length, const char* message, const void* userParam)
|
static void APIENTRY CustomGLDebugOutput(GLenum source, GLenum type, unsigned int id, GLenum severity, GLsizei length, const char* message, const void* userParam)
|
||||||
|
#else
|
||||||
|
static void CustomGLDebugOutput(GLenum source, GLenum type, unsigned int id, GLenum severity, GLsizei length, const char* message, const void* userParam)
|
||||||
|
#endif // _WIN32
|
||||||
{
|
{
|
||||||
if (severity == GL_DEBUG_SEVERITY_NOTIFICATION)
|
if (severity == GL_DEBUG_SEVERITY_NOTIFICATION)
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user