Mercurial > sdl-ios-xcode
comparison src/video/win32/SDL_win32window.c @ 3057:089a77aebb7d
Added test program for SDL_CreateWindowFrom()
Make sure OpenGL library is loaded before working with OpenGL windows,
even those created with SDL_CreateWindowFrom()
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 09 Feb 2009 05:32:12 +0000 |
parents | 9acb9f0f7f0d |
children | 0d12e8f1de3c |
comparison
equal
deleted
inserted
replaced
3056:a434fe6360df | 3057:089a77aebb7d |
---|---|
519 { | 519 { |
520 SDL_VideoData *videodata = (SDL_VideoData *) _this->driverdata; | 520 SDL_VideoData *videodata = (SDL_VideoData *) _this->driverdata; |
521 SDL_WindowData *data = (SDL_WindowData *) window->driverdata; | 521 SDL_WindowData *data = (SDL_WindowData *) window->driverdata; |
522 | 522 |
523 if (data) { | 523 if (data) { |
524 #ifdef SDL_VIDEO_OPENGL_WGL | |
525 if (window->flags & SDL_WINDOW_OPENGL) { | |
526 WIN_GL_CleanupWindow(_this, window); | |
527 } | |
528 #endif | |
529 ReleaseDC(data->hwnd, data->hdc); | 524 ReleaseDC(data->hwnd, data->hdc); |
530 if (data->created) { | 525 if (data->created) { |
531 if (videodata->wintabDLL) { | 526 if (videodata->wintabDLL) { |
532 videodata->WTClose(g_hCtx[window->id]); | 527 videodata->WTClose(g_hCtx[window->id]); |
533 } | 528 } |