diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-03-15 03:51:46 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-03-15 03:51:46 +0300 |
commit | 316ccc4a6e947bf46489bfe36d630a6a4648069f (patch) | |
tree | 86b13d5692536aaca273c21fa1b368c8e8d110c7 /intern/ghost | |
parent | 6fa400182423d1a9200fe93ed0b7a45e37552c3e (diff) |
GHOST: Fix wrong usage of wglCreatePbufferARB.
Last argument must be a pointer to list of int terminated by a value of 0.
Diffstat (limited to 'intern/ghost')
-rw-r--r-- | intern/ghost/intern/GHOST_ContextWGL.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/intern/ghost/intern/GHOST_ContextWGL.cpp b/intern/ghost/intern/GHOST_ContextWGL.cpp index a23c0b0b26c..58ade795e3f 100644 --- a/intern/ghost/intern/GHOST_ContextWGL.cpp +++ b/intern/ghost/intern/GHOST_ContextWGL.cpp @@ -363,7 +363,8 @@ void GHOST_ContextWGL::initContextWGLEW(PIXELFORMATDESCRIPTOR &preferredPFD) dummyHDC = GetDC(dummyHWND); } else { - dummyhBuffer = wglCreatePbufferARB(m_hDC, iPixelFormat, 1, 1, 0); + int iAttribList[] = {0}; + dummyhBuffer = wglCreatePbufferARB(m_hDC, iPixelFormat, 1, 1, iAttribList); dummyHDC = wglGetPbufferDCARB(dummyhBuffer); } @@ -812,7 +813,8 @@ GHOST_TSuccess GHOST_ContextWGL::initializeDrawingContext() if (create_hDC) { /* create an off-screen pixel buffer (Pbuffer) */ - m_dummyPbuffer = wglCreatePbufferARB(m_hDC, iPixelFormat, 1, 1, 0); + int iAttribList[] = {0}; + m_dummyPbuffer = wglCreatePbufferARB(m_hDC, iPixelFormat, 1, 1, iAttribList); m_hDC = wglGetPbufferDCARB(m_dummyPbuffer); } |