Fixed wglShareLists() call that used the wrong variable.

This commit is contained in:
Ryan C. Gordon 2012-08-25 16:49:05 -04:00
parent 386b1d15cf
commit e5f91113a3

View file

@ -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;