diff --git a/src/video/windows/SDL_windowsopengl.c b/src/video/windows/SDL_windowsopengl.c index f95a90872..6088f9c45 100755 --- a/src/video/windows/SDL_windowsopengl.c +++ b/src/video/windows/SDL_windowsopengl.c @@ -540,7 +540,7 @@ WIN_GL_CreateContext(_THIS, SDL_Window * window) /* Create legacy context */ context = _this->gl_data->wglCreateContext(hdc); if( share_context != 0 ) { - _this->gl_data->wglShareLists(share_context, hdc); + _this->gl_data->wglShareLists(share_context, context); } } else { PFNWGLCREATECONTEXTATTRIBSARBPROC wglCreateContextAttribsARB;