GPU resource disposal
This commit is contained in:
parent
f7bcc884e4
commit
59fdaa744b
20 changed files with 195 additions and 46 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue