From b6951822c10e1c1bb8ad72c39c80f6601ca078de Mon Sep 17 00:00:00 2001 From: Roderick Colenbrander Date: Fri, 5 Oct 2007 20:02:50 +0200 Subject: [PATCH] wined3d: Make sure we receive a hw accelerated pixel format with OpenGL support. --- dlls/wined3d/context.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index 23569fab435..c2c1552049a 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);