misc: chore: Use explicit types in NVDEC projects (except VP9 because there's an open PR and I don't want to cause conflicts)

This commit is contained in:
Evan Husted
2025-01-25 14:07:20 -06:00
parent 76ec047eb7
commit 68bbb29be6
4 changed files with 14 additions and 12 deletions

View File

@@ -36,7 +36,7 @@ namespace Ryujinx.Graphics.Nvdec
public void DestroyContext(long id)
{
if (_contexts.TryRemove(id, out var context))
if (_contexts.TryRemove(id, out NvdecDecoderContext context))
{
context.Dispose();
}
@@ -46,7 +46,7 @@ namespace Ryujinx.Graphics.Nvdec
public void BindContext(long id)
{
if (_contexts.TryGetValue(id, out var context))
if (_contexts.TryGetValue(id, out NvdecDecoderContext context))
{
_currentContext = context;
}