GPU resource disposal

This commit is contained in:
gdkchan 2019-12-31 19:09:49 -03:00 committed by Thog
parent f7bcc884e4
commit 59fdaa744b
20 changed files with 195 additions and 46 deletions

View file

@ -6,7 +6,7 @@ using System;
namespace Ryujinx.Graphics.OpenGL
{
class Pipeline : IPipeline
class Pipeline : IPipeline, IDisposable
{
private Program _program;
@ -863,5 +863,11 @@ namespace Ryujinx.Graphics.OpenGL
(_componentMasks[index] & 8u) != 0);
}
}
public void Dispose()
{
_framebuffer?.Dispose();
_vertexArray?.Dispose();
}
}
}