Module: wine Branch: master Commit: b6951822c10e1c1bb8ad72c39c80f6601ca078de URL: http://source.winehq.org/git/wine.git/?a=commit;h=b6951822c10e1c1bb8ad72c39c...
Author: Roderick Colenbrander thunderbird2k@gmx.net Date: Fri Oct 5 20:02:50 2007 +0200
wined3d: Make sure we receive a hw accelerated pixel format with OpenGL support.
---
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);