Remove seemingly-useless casts

This commit is contained in:
Clownacy 2020-04-01 20:50:45 +01:00
parent 81b5a7e789
commit 0c70b1ac31
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ BOOL WindowBackend_OpenGL_CreateWindow(const char *window_title, int *screen_wid
glfwMakeContextCurrent(window);
#ifndef USE_OPENGLES2
if (gladLoadGLLoader((GLADloadproc)glfwGetProcAddress))
if (gladLoadGLLoader(glfwGetProcAddress))
{
// Check if the platform supports OpenGL 3.2
if (GLAD_GL_VERSION_3_2)

View file

@ -43,7 +43,7 @@ BOOL WindowBackend_OpenGL_CreateWindow(const char *window_title, int *screen_wid
if (SDL_GL_MakeCurrent(window, context) == 0)
{
#ifndef USE_OPENGLES2
if (gladLoadGLLoader((GLADloadproc)SDL_GL_GetProcAddress))
if (gladLoadGLLoader(SDL_GL_GetProcAddress))
{
// Check if the platform supports OpenGL 3.2
if (GLAD_GL_VERSION_3_2)