From e5f91113a3e85df6bb1bcd6bb6b86e0b06acfee5 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 25 Aug 2012 16:49:05 -0400 Subject: [PATCH] Fixed wglShareLists() call that used the wrong variable. --- src/video/windows/SDL_windowsopengl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;