[PATCH] In window mode (!pbuffer) we want both a window drawable format and double buffering. The old code failed when window drawable was false and double buffering was true. This code should be correct.
Roderick Colenbrander
thunderbird2k at gmx.net
Thu May 1 08:23:17 CDT 2008
---
dlls/wined3d/context.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index c91153c..dcce127 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -140,8 +140,8 @@ static int WineD3D_ChoosePixelFormat(IWineD3DDeviceImpl *This, HDC hdc, WINED3DF
if(cfgs->iPixelType != WGL_TYPE_RGBA_ARB)
continue;
- /* In all cases except when we are in pbuffer-mode we need a window drawable format with double buffering. */
- if(!pbuffer && !cfgs->windowDrawable && !cfgs->doubleBuffer)
+ /* In window mode (!pbuffer) we need a window drawable format and double buffering. */
+ if(!pbuffer && !(cfgs->windowDrawable && cfgs->doubleBuffer))
continue;
/* We like to have aux buffers in backbuffer mode */
--
1.5.3.4
--========GMX327101209641390201248--
More information about the wine-patches
mailing list