Fixed wglShareLists() call that used the wrong variable.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 25 Aug 2012 16:49:05 -0400
changeset 6406 3a098f2d4dea
parent 6404 724e1fba7933
child 6407 93f481657c6d
Fixed wglShareLists() call that used the wrong variable.
src/video/windows/SDL_windowsopengl.c
--- a/src/video/windows/SDL_windowsopengl.c	Fri Aug 24 19:39:51 2012 -0400
+++ b/src/video/windows/SDL_windowsopengl.c	Sat Aug 25 16:49:05 2012 -0400
@@ -540,7 +540,7 @@
         /* 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;