From 2b0271b185bfa9b904d2e2c5c0ba373ab471f84a 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] 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 file changed, 3 insertions(+) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 12003d6130e..5c5f6ed0a34 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;