Test the video features with #if instead of #ifdef
This commit is contained in:
Sam Lantinga 2011-01-24 17:38:18 -08:00
parent d5b9e9676a
commit 065e4e3f9d
7 changed files with 27 additions and 5 deletions

View file

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

View file

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