src/video/wincommon/SDL_wingl.c
changeset 766 ed57c876700d
parent 677 92a933bf2f0f
child 769 b8d311d90021
equal deleted inserted replaced
765:4c2ba6161939 766:ed57c876700d
    77 		status = -1;
    77 		status = -1;
    78 	}
    78 	}
    79 	return(status);
    79 	return(status);
    80 }
    80 }
    81 
    81 
       
    82 #ifdef HAVE_OPENGL
    82 static void Init_WGL_ARB_extensions(_THIS)
    83 static void Init_WGL_ARB_extensions(_THIS)
    83 {
    84 {
    84 	HWND hwnd;
    85 	HWND hwnd;
    85 	HDC hdc;
    86 	HDC hdc;
    86 	HGLRC hglrc;
    87 	HGLRC hglrc;
   125 		this->gl_data->wglDeleteContext(hglrc);
   126 		this->gl_data->wglDeleteContext(hglrc);
   126 	}
   127 	}
   127 	ReleaseDC(hwnd, hdc);
   128 	ReleaseDC(hwnd, hdc);
   128 	DestroyWindow(hwnd);
   129 	DestroyWindow(hwnd);
   129 }
   130 }
       
   131 #endif /* !HAVE_OPENGL */
   130 
   132 
   131 int WIN_GL_SetupWindow(_THIS)
   133 int WIN_GL_SetupWindow(_THIS)
   132 {
   134 {
   133 	int retval;
   135 	int retval;
   134 #ifdef HAVE_OPENGL
   136 #ifdef HAVE_OPENGL