mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 13:52:57 +00:00
[host] dxgi: fix invalid array access via wrong variable
This commit is contained in:
parent
10e30eec57
commit
d480b674ca
1 changed files with 1 additions and 1 deletions
|
@ -412,7 +412,7 @@ static bool d3d12_preCopy(ID3D11Texture2D * src, unsigned textureIndex)
|
|||
// too many handles to cache, disable the cache entirely
|
||||
for(int i = 0; i < this->sharedCacheCount; ++i)
|
||||
{
|
||||
struct SharedCache *cache = &this->sharedCache[this->sharedCacheCount++];
|
||||
struct SharedCache *cache = &this->sharedCache[i];
|
||||
comRef_release(cache->d12src);
|
||||
}
|
||||
this->sharedCacheCount = -1;
|
||||
|
|
Loading…
Reference in a new issue