diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2018-07-09 23:01:59 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-09 23:01:59 -0300 |
| commit | 1968386808bb48f823b1877b0e5ff8c6e2f8bd49 (patch) | |
| tree | 40b4dd9e9dc1f756af99fcd571a7ef5272f4cc8f /Ryujinx.Graphics/Gal/OpenGL/OGLTexture.cs | |
| parent | 791fe70810f0f0f417c74aaff5446551bed78fee (diff) | |
Add locking methods to the ogl resource cache (#238)
* Add locking methods to the ogl resource cache
* Remove some unused arguments
* Add the ZF32 texture format
Diffstat (limited to 'Ryujinx.Graphics/Gal/OpenGL/OGLTexture.cs')
| -rw-r--r-- | Ryujinx.Graphics/Gal/OpenGL/OGLTexture.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Ryujinx.Graphics/Gal/OpenGL/OGLTexture.cs b/Ryujinx.Graphics/Gal/OpenGL/OGLTexture.cs index c50bdd71..5caca6ec 100644 --- a/Ryujinx.Graphics/Gal/OpenGL/OGLTexture.cs +++ b/Ryujinx.Graphics/Gal/OpenGL/OGLTexture.cs @@ -26,6 +26,16 @@ namespace Ryujinx.Graphics.Gal.OpenGL TextureCache = new OGLCachedResource<TCE>(DeleteTexture); } + public void LockCache() + { + TextureCache.Lock(); + } + + public void UnlockCache() + { + TextureCache.Unlock(); + } + private static void DeleteTexture(TCE CachedTexture) { GL.DeleteTexture(CachedTexture.Handle); |
