diff options
author | Daniel Borca <dborca@users.sourceforge.net> | 2004-02-09 07:39:03 +0000 |
---|---|---|
committer | Daniel Borca <dborca@users.sourceforge.net> | 2004-02-09 07:39:03 +0000 |
commit | 89625ef6341054743c0c24e92ac0c34cabf9abf3 (patch) | |
tree | 7345e32036e1d53d487ba9e8209bccde2824caa6 /src/mesa/drivers/glide/fxwgl.c | |
parent | 53ad0369721966c67bf6edad59c74e9ba7891fa5 (diff) |
deal with combine_ext refactor
Diffstat (limited to 'src/mesa/drivers/glide/fxwgl.c')
-rw-r--r-- | src/mesa/drivers/glide/fxwgl.c | 9 |
1 files changed, 7 insertions, 2 deletions
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")) |