From 89625ef6341054743c0c24e92ac0c34cabf9abf3 Mon Sep 17 00:00:00 2001 From: Daniel Borca Date: Mon, 9 Feb 2004 07:39:03 +0000 Subject: deal with combine_ext refactor --- src/mesa/drivers/glide/fxwgl.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/mesa/drivers/glide/fxwgl.c') diff --git a/src/mesa/drivers/glide/fxwgl.c b/src/mesa/drivers/glide/fxwgl.c index f8450b1b01..c70bb3b892 100644 --- a/src/mesa/drivers/glide/fxwgl.c +++ b/src/mesa/drivers/glide/fxwgl.c @@ -345,8 +345,13 @@ wglCreateContext(HDC hdc) ShowWindow(hWnd, SW_SHOWNORMAL); SetForegroundWindow(hWnd); Sleep(100); /* a hack for win95 */ - GetClientRect(hWnd, &cliRect); - error = !(ctx = fxMesaCreateBestContext((GLuint) hWnd, cliRect.right, cliRect.bottom, pix[curPFD - 1].mesaAttr)); + if (0 && !(GetWindowLong (hWnd, GWL_STYLE) & WS_POPUP)) { + /* [dBorca] Hack alert: unfinished business! */ + error = !(ctx = fxMesaCreateContext((GLuint) hWnd, GR_RESOLUTION_NONE, GR_REFRESH_NONE, pix[curPFD - 1].mesaAttr)); + } else { + GetClientRect(hWnd, &cliRect); + error = !(ctx = fxMesaCreateBestContext((GLuint) hWnd, cliRect.right, cliRect.bottom, pix[curPFD - 1].mesaAttr)); + } } /*if (getenv("SST_DUALHEAD")) -- cgit v1.2.3