summaryrefslogtreecommitdiffstats
path: root/3rdparty/bgfx/src/glcontext_wgl.cpp
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/src/glcontext_wgl.cpp')
-rw-r--r--3rdparty/bgfx/src/glcontext_wgl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/3rdparty/bgfx/src/glcontext_wgl.cpp b/3rdparty/bgfx/src/glcontext_wgl.cpp
index 9d162cda9b6..d20b8449dd1 100644
--- a/3rdparty/bgfx/src/glcontext_wgl.cpp
+++ b/3rdparty/bgfx/src/glcontext_wgl.cpp
@@ -59,7 +59,7 @@ namespace bgfx { namespace gl
static HGLRC createContext(HDC _hdc)
{
PIXELFORMATDESCRIPTOR pfd;
- memset(&pfd, 0, sizeof(pfd) );
+ bx::memSet(&pfd, 0, sizeof(pfd) );
pfd.nSize = sizeof(PIXELFORMATDESCRIPTOR);
pfd.nVersion = 1;
pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER;
@@ -245,7 +245,7 @@ namespace bgfx { namespace gl
BGFX_FATAL(NULL != m_context, Fatal::UnableToInitialize, "Failed to create context 0x%08x.", GetLastError() );
BX_STATIC_ASSERT(sizeof(contextAttrs) == sizeof(m_contextAttrs) );
- memcpy(m_contextAttrs, contextAttrs, sizeof(contextAttrs) );
+ bx::memCopy(m_contextAttrs, contextAttrs, sizeof(contextAttrs) );
}
wglMakeCurrent(NULL, NULL);