parent
d5b9e9676a
commit
065e4e3f9d
7 changed files with 27 additions and 5 deletions
|
@ -197,7 +197,7 @@ WIN_CreateDevice(int devindex)
|
|||
device->shape_driver.SetWindowShape = Win32_SetWindowShape;
|
||||
device->shape_driver.ResizeWindowShape = Win32_ResizeWindowShape;
|
||||
|
||||
#ifdef SDL_VIDEO_OPENGL_WGL
|
||||
#if SDL_VIDEO_OPENGL_WGL
|
||||
device->GL_LoadLibrary = WIN_GL_LoadLibrary;
|
||||
device->GL_GetProcAddress = WIN_GL_GetProcAddress;
|
||||
device->GL_UnloadLibrary = WIN_GL_UnloadLibrary;
|
||||
|
|
|
@ -243,7 +243,7 @@ WIN_CreateWindow(_THIS, SDL_Window * window)
|
|||
DestroyWindow(hwnd);
|
||||
return -1;
|
||||
}
|
||||
#ifdef SDL_VIDEO_OPENGL_WGL
|
||||
#if SDL_VIDEO_OPENGL_WGL
|
||||
if (window->flags & SDL_WINDOW_OPENGL) {
|
||||
if (WIN_GL_SetupWindow(_this, window) < 0) {
|
||||
WIN_DestroyWindow(_this, window);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue