Skip to content
Permalink
Browse files
Merge pull request #6136 from ligfx/fixtexturecachenogpudecode
TextureCache: don't create texture decoding resources if not enabled
  • Loading branch information
stenzek committed Oct 22, 2017
2 parents 78d5dbe + 82129d3 commit d57d7b7
Showing 1 changed file with 4 additions and 2 deletions.
@@ -69,14 +69,16 @@ TextureCache::TextureCache()
glBindTexture(GL_TEXTURE_BUFFER, m_palette_resolv_texture);
glTexBuffer(GL_TEXTURE_BUFFER, GL_R16UI, m_palette_stream_buffer->m_buffer);

CreateTextureDecodingResources();
if (g_ActiveConfig.backend_info.bSupportsGPUTextureDecoding)
CreateTextureDecodingResources();
}
}

TextureCache::~TextureCache()
{
DeleteShaders();
DestroyTextureDecodingResources();
if (g_ActiveConfig.backend_info.bSupportsGPUTextureDecoding)
DestroyTextureDecodingResources();

if (g_ActiveConfig.backend_info.bSupportsPaletteConversion)
{

0 comments on commit d57d7b7

Please sign in to comment.