Remove unnecessary reinterpret_casts

This commit is contained in:
Chris Thrasher 2023-11-26 15:06:37 -07:00
parent fca84e4011
commit 2fcdec5153
4 changed files with 8 additions and 8 deletions

View File

@ -235,9 +235,9 @@ int main()
}
#ifdef SFML_OPENGL_ES
gladLoadGLES1(reinterpret_cast<GLADloadfunc>(sf::Context::getFunction));
gladLoadGLES1(sf::Context::getFunction);
#else
gladLoadGL(reinterpret_cast<GLADloadfunc>(sf::Context::getFunction));
gladLoadGL(sf::Context::getFunction);
#endif
// Initialize our views

View File

@ -94,9 +94,9 @@ int main()
// Load OpenGL or OpenGL ES entry points using glad
#ifdef SFML_OPENGL_ES
gladLoadGLES1(reinterpret_cast<GLADloadfunc>(sf::Context::getFunction));
gladLoadGLES1(sf::Context::getFunction);
#else
gladLoadGL(reinterpret_cast<GLADloadfunc>(sf::Context::getFunction));
gladLoadGL(sf::Context::getFunction);
#endif
// Enable Z-buffer read and write

View File

@ -41,9 +41,9 @@ int main()
// Load OpenGL or OpenGL ES entry points using glad
#ifdef SFML_OPENGL_ES
gladLoadGLES1(reinterpret_cast<GLADloadfunc>(sf::Context::getFunction));
gladLoadGLES1(sf::Context::getFunction);
#else
gladLoadGL(reinterpret_cast<GLADloadfunc>(sf::Context::getFunction));
gladLoadGL(sf::Context::getFunction);
#endif
// Set the color and depth clear values

View File

@ -61,9 +61,9 @@ void ensureExtensionsInit()
initialized = true;
#ifdef SFML_OPENGL_ES
gladLoadGLES1(reinterpret_cast<GLADloadfunc>(sf::Context::getFunction));
gladLoadGLES1(sf::Context::getFunction);
#else
gladLoadGL(reinterpret_cast<GLADloadfunc>(sf::Context::getFunction));
gladLoadGL(sf::Context::getFunction);
#endif
// Retrieve the context version number