[PATCH 09/12] wined3d: Don't create a depthstencil renderbuffer if ARB_framebuffer_object is supported.
Henri Verbeet
hverbeet at codeweavers.com
Wed Sep 23 03:05:56 CDT 2009
---
dlls/wined3d/surface.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 564f6b3..920e759 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -622,7 +622,9 @@ void surface_set_compatible_renderbuffer(IWineD3DSurface *iface, unsigned int wi
if (width > src_width || height > src_height) return;
/* Remove any renderbuffer set if the sizes match */
- if (width == src_width && height == src_height) {
+ if (gl_info->supported[ARB_FRAMEBUFFER_OBJECT]
+ || (width == src_width && height == src_height))
+ {
This->current_renderbuffer = NULL;
return;
}
--
1.6.0.6
More information about the wine-patches
mailing list