Fix 3 graphics related issues (#180)
* Fix 3 graphics related bugs * OGLShader shouldn't be public (yet)
This commit is contained in:
parent
5182361f4b
commit
c26ddd6259
8 changed files with 40 additions and 14 deletions
|
@ -163,9 +163,9 @@ namespace Ryujinx.HLE.OsHle.Services.Nv.NvMap
|
|||
return NvResult.InvalidInput;
|
||||
}
|
||||
|
||||
long RefCount = Map.DecrementRefCount();
|
||||
long OldRefCount = Map.DecrementRefCount();
|
||||
|
||||
if (RefCount <= 0)
|
||||
if (OldRefCount <= 1)
|
||||
{
|
||||
DeleteNvMap(Context, Args.Handle);
|
||||
|
||||
|
@ -178,7 +178,7 @@ namespace Ryujinx.HLE.OsHle.Services.Nv.NvMap
|
|||
Args.Flags = FlagNotFreedYet;
|
||||
}
|
||||
|
||||
Args.RefCount = RefCount;
|
||||
Args.RefCount = OldRefCount;
|
||||
Args.Size = Map.Size;
|
||||
|
||||
AMemoryHelper.Write(Context.Memory, OutputPosition, Args);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue