mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 20:17:49 +00:00
OPENGL: Fix warning when using builtin OpenGL functions
This commit is contained in:
parent
5589c2bd60
commit
3d83d144a3
@ -82,11 +82,11 @@ void OpenGLGraphicsManager::initializeGLContext() {
|
||||
// We use horrible trickery to silence C++ compilers.
|
||||
// See backends/plugins/sdl/sdl-provider.cpp for more information.
|
||||
assert(sizeof(void (*)()) == sizeof(void *));
|
||||
void *fn = nullptr;
|
||||
|
||||
#define LOAD_FUNC(name, loadName) \
|
||||
fn = getProcAddress(#loadName); \
|
||||
memcpy(&g_context.name, &fn, sizeof(fn))
|
||||
#define LOAD_FUNC(name, loadName) { \
|
||||
void *fn = getProcAddress(#loadName); \
|
||||
memcpy(&g_context.name, &fn, sizeof(fn)); \
|
||||
}
|
||||
|
||||
#define GL_EXT_FUNC_DEF(ret, name, param) LOAD_FUNC(name, name)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user