Update #38 - Fix a few issues in the previous update

This commit is contained in:
lax1dude
2024-09-24 23:03:52 -07:00
parent 8a081266f4
commit 6a6941d496
22 changed files with 110 additions and 106 deletions

View File

@ -923,10 +923,13 @@ public class EaglercraftGPU {
}
public static final void destroyCache() {
stringCache.clear();
mapTexturesGL.clear();
mapQueriesGL.clear();
mapDisplayListsGL.clear();
GLSLHeader.destroy();
DrawUtils.destroy();
SpriteLevelMixer.destroy();
InstancedFontRenderer.destroy();
InstancedParticleRenderer.destroy();
EffectPipelineFXAA.destroy();
TextureCopyUtil.destroy();
emulatedVAOs = false;
emulatedVAOState = null;
glesVers = -1;
@ -936,13 +939,10 @@ public class EaglercraftGPU {
hasFramebufferHDR16FSupport = false;
hasFramebufferHDR32FSupport = false;
hasLinearHDR32FSupport = false;
GLSLHeader.destroy();
DrawUtils.destroy();
SpriteLevelMixer.destroy();
InstancedFontRenderer.destroy();
InstancedParticleRenderer.destroy();
EffectPipelineFXAA.destroy();
TextureCopyUtil.destroy();
stringCache.clear();
mapTexturesGL.clear();
mapQueriesGL.clear();
mapDisplayListsGL.clear();
}
public static final int checkOpenGLESVersion() {

View File

@ -169,7 +169,7 @@ public class EffectPipelineFXAA {
}
if(framebufferColor != -1) {
GlStateManager.deleteTexture(framebufferColor);
framebufferColor = -2;
framebufferColor = -1;
}
if(framebufferDepth != null) {
_wglDeleteRenderbuffer(framebufferDepth);