Commit fbcf21e9 authored by Martin Schultz's avatar Martin Schultz

* added fix for MSVC to gl*.inc files

parent 9dd29e1c
......@@ -2920,9 +2920,9 @@ int ogl_LoadFunctions()
int numFailed = 0;
ClearExtensionVars();
_ptrc_glGetIntegerv = (void (*)(GLenum,GLint*)) IntGetProcAddress("glGetIntegerv");
_ptrc_glGetIntegerv = (void (CODEGEN_FUNCPTR *)(GLenum,GLint*)) IntGetProcAddress("glGetIntegerv");
if(!_ptrc_glGetIntegerv) return ogl_LOAD_FAILED;
_ptrc_glGetStringi = (const GLubyte* (*)(GLenum,GLuint)) IntGetProcAddress("glGetStringi");
_ptrc_glGetStringi = (const GLubyte* (CODEGEN_FUNCPTR *)(GLenum,GLuint)) IntGetProcAddress("glGetStringi");
if(!_ptrc_glGetStringi) return ogl_LOAD_FAILED;
ProcExtsFromExtList();
......
......@@ -1714,9 +1714,9 @@ int ogl_LoadFunctions()
int numFailed = 0;
ClearExtensionVars();
_ptrc_glGetIntegerv = (void (*)(GLenum,GLint*)) IntGetProcAddress("glGetIntegerv");
_ptrc_glGetIntegerv = (void (CODEGEN_FUNCPTR *)(GLenum,GLint*)) IntGetProcAddress("glGetIntegerv");
if(!_ptrc_glGetIntegerv) return ogl_LOAD_FAILED;
_ptrc_glGetStringi = (const GLubyte* (*)(GLenum,GLuint)) IntGetProcAddress("glGetStringi");
_ptrc_glGetStringi = (const GLubyte* (CODEGEN_FUNCPTR *)(GLenum,GLuint)) IntGetProcAddress("glGetStringi");
if(!_ptrc_glGetStringi) return ogl_LOAD_FAILED;
ProcExtsFromExtList();
......
......@@ -1780,9 +1780,9 @@ int ogl_LoadFunctions()
int numFailed = 0;
ClearExtensionVars();
_ptrc_glGetIntegerv = (void (*)(GLenum,GLint*)) IntGetProcAddress("glGetIntegerv");
_ptrc_glGetIntegerv = (void (CODEGEN_FUNCPTR *)(GLenum,GLint*)) IntGetProcAddress("glGetIntegerv");
if(!_ptrc_glGetIntegerv) return ogl_LOAD_FAILED;
_ptrc_glGetStringi = (const GLubyte* (*)(GLenum,GLuint)) IntGetProcAddress("glGetStringi");
_ptrc_glGetStringi = (const GLubyte* (CODEGEN_FUNCPTR *)(GLenum,GLuint)) IntGetProcAddress("glGetStringi");
if(!_ptrc_glGetStringi) return ogl_LOAD_FAILED;
ProcExtsFromExtList();
......
......@@ -1962,9 +1962,9 @@ int ogl_LoadFunctions()
int numFailed = 0;
ClearExtensionVars();
_ptrc_glGetIntegerv = (void (*)(GLenum,GLint*)) IntGetProcAddress("glGetIntegerv");
_ptrc_glGetIntegerv = (void (CODEGEN_FUNCPTR *)(GLenum,GLint*)) IntGetProcAddress("glGetIntegerv");
if(!_ptrc_glGetIntegerv) return ogl_LOAD_FAILED;
_ptrc_glGetStringi = (const GLubyte* (*)(GLenum,GLuint)) IntGetProcAddress("glGetStringi");
_ptrc_glGetStringi = (const GLubyte* (CODEGEN_FUNCPTR *)(GLenum,GLuint)) IntGetProcAddress("glGetStringi");
if(!_ptrc_glGetStringi) return ogl_LOAD_FAILED;
ProcExtsFromExtList();
......
......@@ -2105,9 +2105,9 @@ int ogl_LoadFunctions()
int numFailed = 0;
ClearExtensionVars();
_ptrc_glGetIntegerv = (void (*)(GLenum,GLint*)) IntGetProcAddress("glGetIntegerv");
_ptrc_glGetIntegerv = (void (CODEGEN_FUNCPTR *)(GLenum,GLint*)) IntGetProcAddress("glGetIntegerv");
if(!_ptrc_glGetIntegerv) return ogl_LOAD_FAILED;
_ptrc_glGetStringi = (const GLubyte* (*)(GLenum,GLuint)) IntGetProcAddress("glGetStringi");
_ptrc_glGetStringi = (const GLubyte* (CODEGEN_FUNCPTR *)(GLenum,GLuint)) IntGetProcAddress("glGetStringi");
if(!_ptrc_glGetStringi) return ogl_LOAD_FAILED;
ProcExtsFromExtList();
......
......@@ -2292,9 +2292,9 @@ int ogl_LoadFunctions()
int numFailed = 0;
ClearExtensionVars();
_ptrc_glGetIntegerv = (void (*)(GLenum,GLint*)) IntGetProcAddress("glGetIntegerv");
_ptrc_glGetIntegerv = (void (CODEGEN_FUNCPTR *)(GLenum,GLint*)) IntGetProcAddress("glGetIntegerv");
if(!_ptrc_glGetIntegerv) return ogl_LOAD_FAILED;
_ptrc_glGetStringi = (const GLubyte* (*)(GLenum,GLuint)) IntGetProcAddress("glGetStringi");
_ptrc_glGetStringi = (const GLubyte* (CODEGEN_FUNCPTR *)(GLenum,GLuint)) IntGetProcAddress("glGetStringi");
if(!_ptrc_glGetStringi) return ogl_LOAD_FAILED;
ProcExtsFromExtList();
......
......@@ -2331,9 +2331,9 @@ int ogl_LoadFunctions()
int numFailed = 0;
ClearExtensionVars();
_ptrc_glGetIntegerv = (void (*)(GLenum,GLint*)) IntGetProcAddress("glGetIntegerv");
_ptrc_glGetIntegerv = (void (CODEGEN_FUNCPTR *)(GLenum,GLint*)) IntGetProcAddress("glGetIntegerv");
if(!_ptrc_glGetIntegerv) return ogl_LOAD_FAILED;
_ptrc_glGetStringi = (const GLubyte* (*)(GLenum,GLuint)) IntGetProcAddress("glGetStringi");
_ptrc_glGetStringi = (const GLubyte* (CODEGEN_FUNCPTR *)(GLenum,GLuint)) IntGetProcAddress("glGetStringi");
if(!_ptrc_glGetStringi) return ogl_LOAD_FAILED;
ProcExtsFromExtList();
......
......@@ -2436,9 +2436,9 @@ int ogl_LoadFunctions()
int numFailed = 0;
ClearExtensionVars();
_ptrc_glGetIntegerv = (void (*)(GLenum,GLint*)) IntGetProcAddress("glGetIntegerv");
_ptrc_glGetIntegerv = (void (CODEGEN_FUNCPTR *)(GLenum,GLint*)) IntGetProcAddress("glGetIntegerv");
if(!_ptrc_glGetIntegerv) return ogl_LOAD_FAILED;
_ptrc_glGetStringi = (const GLubyte* (*)(GLenum,GLuint)) IntGetProcAddress("glGetStringi");
_ptrc_glGetStringi = (const GLubyte* (CODEGEN_FUNCPTR *)(GLenum,GLuint)) IntGetProcAddress("glGetStringi");
if(!_ptrc_glGetStringi) return ogl_LOAD_FAILED;
ProcExtsFromExtList();
......
......@@ -1780,9 +1780,9 @@ int ogl_LoadFunctions()
int numFailed = 0;
ClearExtensionVars();
_ptrc_glGetIntegerv = (void (*)(GLenum,GLint*)) IntGetProcAddress("glGetIntegerv");
_ptrc_glGetIntegerv = (void (CODEGEN_FUNCPTR *)(GLenum,GLint*)) IntGetProcAddress("glGetIntegerv");
if(!_ptrc_glGetIntegerv) return ogl_LOAD_FAILED;
_ptrc_glGetStringi = (const GLubyte* (*)(GLenum,GLuint)) IntGetProcAddress("glGetStringi");
_ptrc_glGetStringi = (const GLubyte* (CODEGEN_FUNCPTR *)(GLenum,GLuint)) IntGetProcAddress("glGetStringi");
if(!_ptrc_glGetStringi) return ogl_LOAD_FAILED;
ProcExtsFromExtList();
......
......@@ -1962,9 +1962,9 @@ int ogl_LoadFunctions()
int numFailed = 0;
ClearExtensionVars();
_ptrc_glGetIntegerv = (void (*)(GLenum,GLint*)) IntGetProcAddress("glGetIntegerv");
_ptrc_glGetIntegerv = (void (CODEGEN_FUNCPTR *)(GLenum,GLint*)) IntGetProcAddress("glGetIntegerv");
if(!_ptrc_glGetIntegerv) return ogl_LOAD_FAILED;
_ptrc_glGetStringi = (const GLubyte* (*)(GLenum,GLuint)) IntGetProcAddress("glGetStringi");
_ptrc_glGetStringi = (const GLubyte* (CODEGEN_FUNCPTR *)(GLenum,GLuint)) IntGetProcAddress("glGetStringi");
if(!_ptrc_glGetStringi) return ogl_LOAD_FAILED;
ProcExtsFromExtList();
......
......@@ -2105,9 +2105,9 @@ int ogl_LoadFunctions()
int numFailed = 0;
ClearExtensionVars();
_ptrc_glGetIntegerv = (void (*)(GLenum,GLint*)) IntGetProcAddress("glGetIntegerv");
_ptrc_glGetIntegerv = (void (CODEGEN_FUNCPTR *)(GLenum,GLint*)) IntGetProcAddress("glGetIntegerv");
if(!_ptrc_glGetIntegerv) return ogl_LOAD_FAILED;
_ptrc_glGetStringi = (const GLubyte* (*)(GLenum,GLuint)) IntGetProcAddress("glGetStringi");
_ptrc_glGetStringi = (const GLubyte* (CODEGEN_FUNCPTR *)(GLenum,GLuint)) IntGetProcAddress("glGetStringi");
if(!_ptrc_glGetStringi) return ogl_LOAD_FAILED;
ProcExtsFromExtList();
......
......@@ -2292,9 +2292,9 @@ int ogl_LoadFunctions()
int numFailed = 0;
ClearExtensionVars();
_ptrc_glGetIntegerv = (void (*)(GLenum,GLint*)) IntGetProcAddress("glGetIntegerv");
_ptrc_glGetIntegerv = (void (CODEGEN_FUNCPTR *)(GLenum,GLint*)) IntGetProcAddress("glGetIntegerv");
if(!_ptrc_glGetIntegerv) return ogl_LOAD_FAILED;
_ptrc_glGetStringi = (const GLubyte* (*)(GLenum,GLuint)) IntGetProcAddress("glGetStringi");
_ptrc_glGetStringi = (const GLubyte* (CODEGEN_FUNCPTR *)(GLenum,GLuint)) IntGetProcAddress("glGetStringi");
if(!_ptrc_glGetStringi) return ogl_LOAD_FAILED;
ProcExtsFromExtList();
......
......@@ -2331,9 +2331,9 @@ int ogl_LoadFunctions()
int numFailed = 0;
ClearExtensionVars();
_ptrc_glGetIntegerv = (void (*)(GLenum,GLint*)) IntGetProcAddress("glGetIntegerv");
_ptrc_glGetIntegerv = (void (CODEGEN_FUNCPTR *)(GLenum,GLint*)) IntGetProcAddress("glGetIntegerv");
if(!_ptrc_glGetIntegerv) return ogl_LOAD_FAILED;
_ptrc_glGetStringi = (const GLubyte* (*)(GLenum,GLuint)) IntGetProcAddress("glGetStringi");
_ptrc_glGetStringi = (const GLubyte* (CODEGEN_FUNCPTR *)(GLenum,GLuint)) IntGetProcAddress("glGetStringi");
if(!_ptrc_glGetStringi) return ogl_LOAD_FAILED;
ProcExtsFromExtList();
......
......@@ -2436,9 +2436,9 @@ int ogl_LoadFunctions()
int numFailed = 0;
ClearExtensionVars();
_ptrc_glGetIntegerv = (void (*)(GLenum,GLint*)) IntGetProcAddress("glGetIntegerv");
_ptrc_glGetIntegerv = (void (CODEGEN_FUNCPTR *)(GLenum,GLint*)) IntGetProcAddress("glGetIntegerv");
if(!_ptrc_glGetIntegerv) return ogl_LOAD_FAILED;
_ptrc_glGetStringi = (const GLubyte* (*)(GLenum,GLuint)) IntGetProcAddress("glGetStringi");
_ptrc_glGetStringi = (const GLubyte* (CODEGEN_FUNCPTR *)(GLenum,GLuint)) IntGetProcAddress("glGetStringi");
if(!_ptrc_glGetStringi) return ogl_LOAD_FAILED;
ProcExtsFromExtList();
......
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