diff --git a/src/rlgl.h b/src/rlgl.h index d8a5d7b2f..a1905981a 100644 --- a/src/rlgl.h +++ b/src/rlgl.h @@ -666,7 +666,7 @@ RLAPI void rlglInit(int width, int height); // Initialize rlgl (buff RLAPI void rlglClose(void); // De-initialize rlgl (buffers, shaders, textures) RLAPI void rlLoadExtensions(void *loader); // Load OpenGL extensions (loader function required) RLAPI int rlGetVersion(void); // Get current OpenGL version -RLAPI GLFWglproc rlGetProcAddress(const char* procname) // Get current Proc address +RLAPI GLFWglproc rlGetProcAddress(const char* procname); // Get current Proc address RLAPI void rlSetFramebufferWidth(int width); // Set current framebuffer width RLAPI int rlGetFramebufferWidth(void); // Get default framebuffer width RLAPI void rlSetFramebufferHeight(int height); // Set current framebuffer height @@ -2517,16 +2517,16 @@ int rlGetVersion(void) return glVersion; } -GLFWglproc rlGetProcAddress(const char* procname) +int rlGetProcAddress(const char* procname) { - GLFWglproc procAddress = 0; + int procAddress = 0; #if defined(PLATFORM_DESKTOP_SDL) - procAddress = SDL_GL_GetProcAddress(procname); + procAddress = (int) SDL_GL_GetProcAddress(procname); #elif defined(PLATFORM_ANDROID) - procAddress = eglGetProcAddress(procname); + procAddress = (int) eglGetProcAddress(procname); #else - procAddress = glfwGetProcAddress(procname); + procAddress = (int) glfwGetProcAddress(procname); #endif return procAddress;