From 7e0030d27a0aee1eff7f6843c8664144571901d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20D=C3=B6singer?= Date: Fri, 4 Dec 2009 10:21:01 +0100 Subject: [PATCH 03/21] WineD3D: use GL_COLOR_ATTACHMENT0 as offscreen buffer with FBOs This is used by the offscreen render target->texture blit code if FBOs are enabled, but FBO_blit is not supported --- dlls/wined3d/device.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index d28b1aa..6f0be56 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -1882,6 +1882,9 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface, switch(wined3d_settings.offscreen_rendering_mode) { case ORM_FBO: + This->offscreenBuffer = GL_COLOR_ATTACHMENT0; + break; + case ORM_PBUFFER: This->offscreenBuffer = GL_BACK; break; -- 1.6.4.4