mirror of
https://github.com/SFML/SFML.git
synced 2024-12-01 07:41:05 +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
|
#ifdef SFML_OPENGL_ES
|
||||||
gladLoadGLES1(reinterpret_cast<GLADloadfunc>(sf::Context::getFunction));
|
gladLoadGLES1(sf::Context::getFunction);
|
||||||
#else
|
#else
|
||||||
gladLoadGL(reinterpret_cast<GLADloadfunc>(sf::Context::getFunction));
|
gladLoadGL(sf::Context::getFunction);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Initialize our views
|
// Initialize our views
|
||||||
|
@ -94,9 +94,9 @@ int main()
|
|||||||
|
|
||||||
// Load OpenGL or OpenGL ES entry points using glad
|
// Load OpenGL or OpenGL ES entry points using glad
|
||||||
#ifdef SFML_OPENGL_ES
|
#ifdef SFML_OPENGL_ES
|
||||||
gladLoadGLES1(reinterpret_cast<GLADloadfunc>(sf::Context::getFunction));
|
gladLoadGLES1(sf::Context::getFunction);
|
||||||
#else
|
#else
|
||||||
gladLoadGL(reinterpret_cast<GLADloadfunc>(sf::Context::getFunction));
|
gladLoadGL(sf::Context::getFunction);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Enable Z-buffer read and write
|
// Enable Z-buffer read and write
|
||||||
|
@ -41,9 +41,9 @@ int main()
|
|||||||
|
|
||||||
// Load OpenGL or OpenGL ES entry points using glad
|
// Load OpenGL or OpenGL ES entry points using glad
|
||||||
#ifdef SFML_OPENGL_ES
|
#ifdef SFML_OPENGL_ES
|
||||||
gladLoadGLES1(reinterpret_cast<GLADloadfunc>(sf::Context::getFunction));
|
gladLoadGLES1(sf::Context::getFunction);
|
||||||
#else
|
#else
|
||||||
gladLoadGL(reinterpret_cast<GLADloadfunc>(sf::Context::getFunction));
|
gladLoadGL(sf::Context::getFunction);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Set the color and depth clear values
|
// Set the color and depth clear values
|
||||||
|
@ -61,9 +61,9 @@ void ensureExtensionsInit()
|
|||||||
initialized = true;
|
initialized = true;
|
||||||
|
|
||||||
#ifdef SFML_OPENGL_ES
|
#ifdef SFML_OPENGL_ES
|
||||||
gladLoadGLES1(reinterpret_cast<GLADloadfunc>(sf::Context::getFunction));
|
gladLoadGLES1(sf::Context::getFunction);
|
||||||
#else
|
#else
|
||||||
gladLoadGL(reinterpret_cast<GLADloadfunc>(sf::Context::getFunction));
|
gladLoadGL(sf::Context::getFunction);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Retrieve the context version number
|
// Retrieve the context version number
|
||||||
|
Loading…
Reference in New Issue
Block a user