mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-08-06 02:08:28 +02:00
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