Stefan Dösinger : wined3d: Use GL_COLOR_ATTACHMENT0 as offscreen buffer with FBOs.
Alexandre Julliard
julliard at winehq.org
Mon Dec 7 10:26:18 CST 2009
Module: wine
Branch: master
Commit: 2b0271b185bfa9b904d2e2c5c0ba373ab471f84a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2b0271b185bfa9b904d2e2c5c0ba373ab471f84a
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Fri Dec 4 10:21:01 2009 +0100
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 12003d6..5c5f6ed 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;
More information about the wine-cvs
mailing list