diff options
author | Cameron Cawley | 2019-10-18 16:49:12 +0100 |
---|---|---|
committer | Cameron Cawley | 2019-10-18 16:49:12 +0100 |
commit | 3d83d144a361aee1bbaff00850f2efcd21683954 (patch) | |
tree | 460211209baeaabc6622dbea6a4f26bb75866e35 /backends/graphics/opengl | |
parent | 5589c2bd605e8a80508b8a1d26948cc75762aa85 (diff) | |
download | scummvm-rg350-3d83d144a361aee1bbaff00850f2efcd21683954.tar.gz scummvm-rg350-3d83d144a361aee1bbaff00850f2efcd21683954.tar.bz2 scummvm-rg350-3d83d144a361aee1bbaff00850f2efcd21683954.zip |
OPENGL: Fix warning when using builtin OpenGL functions
Diffstat (limited to 'backends/graphics/opengl')
-rw-r--r-- | backends/graphics/opengl/context.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/backends/graphics/opengl/context.cpp b/backends/graphics/opengl/context.cpp index 08f44969a7..564007bd2c 100644 --- a/backends/graphics/opengl/context.cpp +++ b/backends/graphics/opengl/context.cpp @@ -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) |