summaryrefslogtreecommitdiff
path: root/win/System.cpp
diff options
context:
space:
mode:
authorleo2000-12-18 12:42:31 +0000
committerleo2000-12-18 12:42:31 +0000
commit9f945b3fe2361205ba6a58f92dc976ded7bccb60 (patch)
tree54db9efd1c083ac06128e4f9d8f1f4e2044d832c /win/System.cpp
parente679694a7bcb61ffee8351bad0396944716b81d4 (diff)
Fixes for win2k crash
git-svn-id: http://svn.leocad.org/trunk@183 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'win/System.cpp')
-rw-r--r--win/System.cpp8
1 files changed, 4 insertions, 4 deletions
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)