GPU resource disposal
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user