wined3d: Don't create a depthstencil renderbuffer if ARB_framebuffer_object is supported.
This commit is contained in:
parent
ec97383f6f
commit
34dd27e3a8
|
@ -622,7 +622,9 @@ void surface_set_compatible_renderbuffer(IWineD3DSurface *iface, unsigned int wi
|
||||||
if (width > src_width || height > src_height) return;
|
if (width > src_width || height > src_height) return;
|
||||||
|
|
||||||
/* Remove any renderbuffer set if the sizes match */
|
/* 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;
|
This->current_renderbuffer = NULL;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue