mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-25 19:45:13 +00:00
GPU: Force rebind when pool changes (#4129)
This commit is contained in:
parent
55a23e5ec8
commit
1cca3e99ab
1 changed files with 8 additions and 3 deletions
|
@ -320,10 +320,15 @@ namespace Ryujinx.Graphics.Gpu.Image
|
||||||
|
|
||||||
// Check if the texture pool has been modified since bindings were last committed.
|
// Check if the texture pool has been modified since bindings were last committed.
|
||||||
// If it wasn't, then it's possible to avoid looking up textures again when the handle remains the same.
|
// If it wasn't, then it's possible to avoid looking up textures again when the handle remains the same.
|
||||||
bool poolModified = _cachedTexturePool != texturePool || _cachedSamplerPool != samplerPool;
|
if (_cachedTexturePool != texturePool || _cachedSamplerPool != samplerPool)
|
||||||
|
{
|
||||||
|
Rebind();
|
||||||
|
|
||||||
_cachedTexturePool = texturePool;
|
_cachedTexturePool = texturePool;
|
||||||
_cachedSamplerPool = samplerPool;
|
_cachedSamplerPool = samplerPool;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool poolModified = false;
|
||||||
|
|
||||||
if (texturePool != null)
|
if (texturePool != null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue