D3D11: Enable pixel depth rounding. GL: Fix a crash bug

This commit is contained in:
Henrik Rydgard committed 2017-02-23 20:40:53 +01:00
1 parent c355947bca
commit 8eb668ea59
14 files changed
+68 -33

No files matched your search

+3 -2
View File
@@ -69,9 +69,10 @@ void TextureCacheGLES::SetFramebufferManager(FramebufferManagerGLES *fbManager)
framebufferManager_ = fbManager;
}
void TextureCacheGLES::ReleaseTexture(TexCacheEntry *entry) {
void TextureCacheGLES::ReleaseTexture(TexCacheEntry *entry, bool delete_them) {
DEBUG_LOG(G3D, "Deleting texture %i", entry->textureName);
glDeleteTextures(1, &entry->textureName);
if (delete_them)
glDeleteTextures(1, &entry->textureName);
entry->textureName = 0;
}