Merge pull request #6136 from ligfx/fixtexturecachenogpudecode
TextureCache: don't create texture decoding resources if not enabled
This commit is contained in:
commit
d57d7b74d7
|
@ -69,14 +69,16 @@ TextureCache::TextureCache()
|
||||||
glBindTexture(GL_TEXTURE_BUFFER, m_palette_resolv_texture);
|
glBindTexture(GL_TEXTURE_BUFFER, m_palette_resolv_texture);
|
||||||
glTexBuffer(GL_TEXTURE_BUFFER, GL_R16UI, m_palette_stream_buffer->m_buffer);
|
glTexBuffer(GL_TEXTURE_BUFFER, GL_R16UI, m_palette_stream_buffer->m_buffer);
|
||||||
|
|
||||||
CreateTextureDecodingResources();
|
if (g_ActiveConfig.backend_info.bSupportsGPUTextureDecoding)
|
||||||
|
CreateTextureDecodingResources();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TextureCache::~TextureCache()
|
TextureCache::~TextureCache()
|
||||||
{
|
{
|
||||||
DeleteShaders();
|
DeleteShaders();
|
||||||
DestroyTextureDecodingResources();
|
if (g_ActiveConfig.backend_info.bSupportsGPUTextureDecoding)
|
||||||
|
DestroyTextureDecodingResources();
|
||||||
|
|
||||||
if (g_ActiveConfig.backend_info.bSupportsPaletteConversion)
|
if (g_ActiveConfig.backend_info.bSupportsPaletteConversion)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue