[PATCH] Make sure we receive a hw accelerated pixel format with OpenGL support. On windows this isn't always the case and results in OpenGL 1.1 software rendering which is very bad. This fixes WineD3D for Windows on ATI cards.

Roderick Colenbrander thunderbird2k at gmx.net
Fri Oct 5 13:02:50 CDT 2007


---
 dlls/wined3d/context.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 23569fa..c2c1552 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -221,6 +221,8 @@ WineD3DContext *CreateContext(IWineD3DDeviceImpl *This, IWineD3DSurfaceImpl *tar
         PUSH2(WGL_DRAW_TO_WINDOW_ARB, GL_TRUE); /* We want to draw to a window */
         PUSH2(WGL_DOUBLE_BUFFER_ARB, GL_TRUE);
         PUSH2(WGL_PIXEL_TYPE_ARB, WGL_TYPE_RGBA_ARB); /* Make sure we don't get a float or color index format */
+        PUSH2(WGL_SUPPORT_OPENGL_ARB, GL_TRUE);
+        PUSH2(WGL_ACCELERATION_ARB, WGL_FULL_ACCELERATION_ARB); /* Make sure we receive an accelerated format. On windows (at least on ATI) this is not always the case */
 
         if(!getColorBits(target->resource.format, &redBits, &greenBits, &blueBits, &alphaBits, &colorBits)) {
             ERR("Unable to get color bits for format %#x!\n", target->resource.format);
-- 
1.5.1.3


--========GMX105191191607613758025--



More information about the wine-patches mailing list