mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-21 21:17:19 +00:00
[host] dxgi: fix invalid array access via wrong variable
This commit is contained in:
parent
10e30eec57
commit
d480b674ca
@ -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 New Issue
Block a user