From 9f945b3fe2361205ba6a58f92dc976ded7bccb60 Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 18 Dec 2000 12:42:31 +0000 Subject: Fixes for win2k crash git-svn-id: http://svn.leocad.org/trunk@183 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- win/System.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'win/System.cpp') diff --git a/win/System.cpp b/win/System.cpp index 3dbd7fc..7fcf8d6 100644 --- a/win/System.cpp +++ b/win/System.cpp @@ -1444,9 +1444,9 @@ void* Sys_StartMemoryRender(int width, int height) PFD_TYPE_RGBA, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, PFD_MAIN_PLANE, 0, 0, 0, 0 }; - int pixelformat = pfnwglChoosePixelFormat(render->hdc, &pfd); - pfnwglDescribePixelFormat(render->hdc, pixelformat, sizeof(PIXELFORMATDESCRIPTOR), &pfd); - pfnwglSetPixelFormat(render->hdc, pixelformat, &pfd); + int pixelformat = OpenGLChoosePixelFormat(render->hdc, &pfd); + OpenGLDescribePixelFormat(render->hdc, pixelformat, sizeof(PIXELFORMATDESCRIPTOR), &pfd); + OpenGLSetPixelFormat(render->hdc, pixelformat, &pfd); render->hrc = pfnwglCreateContext(render->hdc); pfnwglMakeCurrent(render->hdc, render->hrc); @@ -1565,7 +1565,7 @@ long SystemGetTicks() void SystemSwapBuffers() { - pfnwglSwapBuffers (pfnwglGetCurrentDC()); + OpenGLSwapBuffers (pfnwglGetCurrentDC()); } void SystemSetGroup(int group) -- cgit v1.2.3