Skip to content
Snippets Groups Projects
Commit e5575fb7 authored by Philip Trettner's avatar Philip Trettner
Browse files

Added missing calling convention to intel workaround for Win32

parent 7a15454e
No related branches found
No related tags found
No related merge requests found
......@@ -515,7 +515,14 @@ int GlfwApp::run(int argc, char *argv[])
glfwMakeContextCurrent(mWindow);
// WORKAROUND for Intel bug (3.3 available but 3.0 returned UNLESS explicitly requested)
using glGetIntegerFunc = void(GLenum, GLint *);
#define GL_CALL
#ifdef GLOW_COMPILER_MSVC
#if _WIN32
#undef GL_CALL
#define GL_CALL __stdcall // 32bit windows needs a special calling convention
#endif
#endif
using glGetIntegerFunc = void GL_CALL(GLenum, GLint *);
auto getGlInt = (glGetIntegerFunc *)glfwGetProcAddress("glGetIntegerv");
GLint gmajor, gminor;
getGlInt(GL_MAJOR_VERSION, &gmajor);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment