shithub: cstory

Download patch

ref: 0c70b1ac31ba5f884976de5ec210576271f446dd
parent: 81b5a7e789801510ea4b9dd8dba717c24833c749
author: Clownacy <[email protected]>
date: Wed Apr 1 16:50:45 EDT 2020

Remove seemingly-useless casts

--- a/src/Backends/Window/GLFW3-OpenGL3.cpp
+++ b/src/Backends/Window/GLFW3-OpenGL3.cpp
@@ -53,7 +53,7 @@
 		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)
--- a/src/Backends/Window/SDL2-OpenGL3.cpp
+++ b/src/Backends/Window/SDL2-OpenGL3.cpp
@@ -43,7 +43,7 @@
 			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)