diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-23 21:28:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-23 22:50:35 +0300 |
commit | 8a4f26c670cdcf5bf0d4e58d2571e18b33085c5a (patch) | |
tree | 135e604b5ff9dffd4ebf4227e9a11c0a3347fa7a /src | |
parent | 5adc6140d3da7d1e0e7cffe6922a2ac506d731f0 (diff) | |
download | manaverse-8a4f26c670cdcf5bf0d4e58d2571e18b33085c5a.tar.gz manaverse-8a4f26c670cdcf5bf0d4e58d2571e18b33085c5a.tar.bz2 manaverse-8a4f26c670cdcf5bf0d4e58d2571e18b33085c5a.tar.xz manaverse-8a4f26c670cdcf5bf0d4e58d2571e18b33085c5a.zip |
Fix for windows compilation.
Diffstat (limited to 'src')
-rw-r--r-- | src/graphicsmanager.cpp | 2 | ||||
-rw-r--r-- | src/mgl.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index b230d77cf..f03d784a1 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -784,7 +784,7 @@ void GraphicsManager::detectVideoSettings() } } -static void debugCallback(GLenum source, GLenum type, GLuint id, +static CALLBACK void debugCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *text, GLvoid *userParam) { @@ -126,6 +126,8 @@ defNameE(glDebugMessageCallback); typedef const char* (APIENTRY * wglGetExtensionsString_t) (HDC hdc); defNameE(wglGetExtensionsString); +#else +#define CALLBACK #endif #endif |