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

This commit is contained in:
Henri Verbeet 2009-09-23 10:05:56 +02:00 committed by Alexandre Julliard
parent ec97383f6f
commit 34dd27e3a8
1 changed files with 3 additions and 1 deletions

View File

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