H. Verbeet : wined3d: Attach the correct surface the the fbo.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Aug 22 06:23:17 CDT 2007
Module: wine
Branch: master
Commit: e5e41191b349e7ed8fe1d3ca3059294cff611d67
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e5e41191b349e7ed8fe1d3ca3059294cff611d67
Author: H. Verbeet <hverbeet at gmail.com>
Date: Tue Aug 21 23:22:33 2007 +0200
wined3d: Attach the correct surface the the fbo.
---
dlls/wined3d/device.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 2208c63..92b0943 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -5505,7 +5505,8 @@ static void attach_surface_fbo(IWineD3DDeviceImpl *This, GLenum fbo_target, DWOR
IWineD3DBaseTexture_Release((IWineD3DBaseTexture *)texture_impl);
}
- GL_EXTCALL(glFramebufferTexture2DEXT(fbo_target, GL_COLOR_ATTACHMENT0_EXT + idx, texttarget, surface_impl->glDescription.textureName, 0));
+ GL_EXTCALL(glFramebufferTexture2DEXT(fbo_target, GL_COLOR_ATTACHMENT0_EXT + idx, texttarget,
+ surface_impl->glDescription.textureName, surface_impl->glDescription.level));
checkGLcall("attach_surface_fbo");
}
@@ -5742,7 +5743,8 @@ static void set_depth_stencil_fbo(IWineD3DDevice *iface, IWineD3DSurface *depth_
IWineD3DBaseTexture_Release((IWineD3DBaseTexture *)texture_impl);
}
- GL_EXTCALL(glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_DEPTH_ATTACHMENT_EXT, texttarget, depth_stencil_impl->glDescription.textureName, 0));
+ GL_EXTCALL(glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_DEPTH_ATTACHMENT_EXT, texttarget,
+ depth_stencil_impl->glDescription.textureName, depth_stencil_impl->glDescription.level));
checkGLcall("glFramebufferTexture2DEXT()");
}
} else {
More information about the wine-cvs
mailing list