summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wgl/wglgears.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/wgl/wglgears.c b/src/wgl/wglgears.c
index c78ef4aa..7f0d7742 100644
--- a/src/wgl/wglgears.c
+++ b/src/wgl/wglgears.c
@@ -473,16 +473,6 @@ make_window(const char *name, int x, int y, int width, int height)
/* now, create new context with new pixel format */
wglMakeCurrent(hDC, NULL);
wglDeleteContext(hRC);
- DeleteDC(hDC);
-
- hWnd = CreateWindowEx(dwExStyle, name, name,
- WS_CLIPSIBLINGS | WS_CLIPCHILDREN | dwStyle,
- 0, 0,
- winrect.right - winrect.left,
- winrect.bottom - winrect.top,
- NULL, NULL, hInst, NULL);
-
- hDC = GetDC(hWnd);
SetPixelFormat(hDC, pixelFormat, &pfd);
hRC = wglCreateContext(hDC);
wglMakeCurrent(hDC, hRC);