Henri Verbeet : wined3d: Don' t create a depthstencil renderbuffer if ARB_framebuffer_object is supported .

Alexandre Julliard julliard at winehq.org
Wed Sep 23 11:03:06 CDT 2009


Module: wine
Branch: master
Commit: 34dd27e3a8f9affb919db6f7c912040ded8eace8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=34dd27e3a8f9affb919db6f7c912040ded8eace8

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Wed Sep 23 10:05:56 2009 +0200

wined3d: Don't create a depthstencil renderbuffer if ARB_framebuffer_object is supported.

---

 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;
     }




More information about the wine-cvs mailing list