mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 03:03:50 +01:00
Assorted GPU cleanup/fixing (fbo, vbo draw type)
This commit is contained in:
1 parent
d745d57730
commit
8b180513cb
3 files changed
+27
-21
No files matched your search
@@ -82,6 +82,7 @@ void TextureCache_Shutdown() {
|
||||
}
|
||||
|
||||
void TextureCache_Clear(bool delete_them) {
|
||||
glBindTexture(GL_TEXTURE_2D, 0);
|
||||
if (delete_them) {
|
||||
for (TexCache::iterator iter = cache.begin(); iter != cache.end(); ++iter) {
|
||||
DEBUG_LOG(G3D, "Deleting texture %i", iter->second.texture);
|
||||
@@ -96,6 +97,7 @@ void TextureCache_Clear(bool delete_them) {
|
||||
|
||||
// Removes old textures.
|
||||
void TextureCache_Decimate() {
|
||||
glBindTexture(GL_TEXTURE_2D, 0);
|
||||
for (TexCache::iterator iter = cache.begin(); iter != cache.end(); ) {
|
||||
if (iter->second.frameCounter + TEXTURE_KILL_AGE < gpuStats.numFrames) {
|
||||
glDeleteTextures(1, &iter->second.texture);
|
||||
|
||||
Reference in new issue
Block a user