mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Remove unnecessary reinterpret_cast
s
This commit is contained in:
parent
fca84e4011
commit
2fcdec5153
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user