diff --git a/examples/X11/X11.cpp b/examples/X11/X11.cpp index 83d1f1cca..6cd8a4aa3 100644 --- a/examples/X11/X11.cpp +++ b/examples/X11/X11.cpp @@ -235,9 +235,9 @@ int main() } #ifdef SFML_OPENGL_ES - gladLoadGLES1(reinterpret_cast(sf::Context::getFunction)); + gladLoadGLES1(sf::Context::getFunction); #else - gladLoadGL(reinterpret_cast(sf::Context::getFunction)); + gladLoadGL(sf::Context::getFunction); #endif // Initialize our views diff --git a/examples/opengl/OpenGL.cpp b/examples/opengl/OpenGL.cpp index a3eb40814..3937dbec9 100644 --- a/examples/opengl/OpenGL.cpp +++ b/examples/opengl/OpenGL.cpp @@ -94,9 +94,9 @@ int main() // Load OpenGL or OpenGL ES entry points using glad #ifdef SFML_OPENGL_ES - gladLoadGLES1(reinterpret_cast(sf::Context::getFunction)); + gladLoadGLES1(sf::Context::getFunction); #else - gladLoadGL(reinterpret_cast(sf::Context::getFunction)); + gladLoadGL(sf::Context::getFunction); #endif // Enable Z-buffer read and write diff --git a/examples/window/Window.cpp b/examples/window/Window.cpp index ce8c5ff7f..b804647a3 100644 --- a/examples/window/Window.cpp +++ b/examples/window/Window.cpp @@ -41,9 +41,9 @@ int main() // Load OpenGL or OpenGL ES entry points using glad #ifdef SFML_OPENGL_ES - gladLoadGLES1(reinterpret_cast(sf::Context::getFunction)); + gladLoadGLES1(sf::Context::getFunction); #else - gladLoadGL(reinterpret_cast(sf::Context::getFunction)); + gladLoadGL(sf::Context::getFunction); #endif // Set the color and depth clear values diff --git a/src/SFML/Graphics/GLExtensions.cpp b/src/SFML/Graphics/GLExtensions.cpp index 8b35c71bf..9d7f6f023 100644 --- a/src/SFML/Graphics/GLExtensions.cpp +++ b/src/SFML/Graphics/GLExtensions.cpp @@ -61,9 +61,9 @@ void ensureExtensionsInit() initialized = true; #ifdef SFML_OPENGL_ES - gladLoadGLES1(reinterpret_cast(sf::Context::getFunction)); + gladLoadGLES1(sf::Context::getFunction); #else - gladLoadGL(reinterpret_cast(sf::Context::getFunction)); + gladLoadGL(sf::Context::getFunction); #endif // Retrieve the context version number