mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-07-02 16:50:48 -07:00
Fix for render target and a shader compilation issue (#471)
* Fix render target using possibly deleted or wrong handles * Fix basic blocks with only a KIL instruction on the shader translator * Formatting fix
This commit is contained in:
@ -8,6 +8,8 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
||||
{
|
||||
private OGLCachedResource<ImageHandler> TextureCache;
|
||||
|
||||
public EventHandler<int> TextureDeleted { get; set; }
|
||||
|
||||
public OGLTexture()
|
||||
{
|
||||
TextureCache = new OGLCachedResource<ImageHandler>(DeleteTexture);
|
||||
@ -23,8 +25,10 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
||||
TextureCache.Unlock();
|
||||
}
|
||||
|
||||
private static void DeleteTexture(ImageHandler CachedImage)
|
||||
private void DeleteTexture(ImageHandler CachedImage)
|
||||
{
|
||||
TextureDeleted?.Invoke(this, CachedImage.Handle);
|
||||
|
||||
GL.DeleteTexture(CachedImage.Handle);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user