Update rlgl.h

This commit is contained in:
MrScautHD 2024-02-06 19:01:33 +01:00
parent 81667d165b
commit 7eaf4f58f1

View File

@ -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;