wined3d: Delete the device's FBO when destroying the device.
This commit is contained in:
parent
533dcbf170
commit
9c1a61b6e6
|
@ -566,6 +566,10 @@ static ULONG WINAPI IWineD3DDeviceImpl_Release(IWineD3DDevice *iface) {
|
||||||
TRACE("(%p) : Releasing from %d\n", This, refCount + 1);
|
TRACE("(%p) : Releasing from %d\n", This, refCount + 1);
|
||||||
|
|
||||||
if (!refCount) {
|
if (!refCount) {
|
||||||
|
if (This->fbo) {
|
||||||
|
GL_EXTCALL(glDeleteFramebuffersEXT(1, &This->fbo));
|
||||||
|
}
|
||||||
|
|
||||||
/* TODO: Clean up all the surfaces and textures! */
|
/* TODO: Clean up all the surfaces and textures! */
|
||||||
/* NOTE: You must release the parent if the object was created via a callback
|
/* NOTE: You must release the parent if the object was created via a callback
|
||||||
** ***************************/
|
** ***************************/
|
||||||
|
|
Loading…
Reference in New Issue