From f7a519b13fb6fc7610d00189f128905c03bc4fa5 Mon Sep 17 00:00:00 2001 From: shr Date: Sun, 24 Sep 2023 04:09:19 +0900 Subject: [PATCH] cleaning code --- source/funkin/graphics/framebuffer/GrabbableCamera.hx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/source/funkin/graphics/framebuffer/GrabbableCamera.hx b/source/funkin/graphics/framebuffer/GrabbableCamera.hx index 34fb8c9ca..e7ebb8e52 100644 --- a/source/funkin/graphics/framebuffer/GrabbableCamera.hx +++ b/source/funkin/graphics/framebuffer/GrabbableCamera.hx @@ -1,12 +1,10 @@ package funkin.graphics.framebuffer; import flixel.FlxCamera; -import flixel.FlxG; import flixel.graphics.FlxGraphic; import flixel.graphics.frames.FlxFrame; import flixel.math.FlxMatrix; import flixel.math.FlxRect; -import flixel.system.FlxAssets.FlxShader; import openfl.Lib; import openfl.display.BitmapData; import openfl.display3D.textures.TextureBase; @@ -24,7 +22,6 @@ class GrabbableCamera extends FlxCamera { final grabbed:Array = []; final texturePool:Array = []; - final defaultShader:FlxShader = new FlxShader(); final bgTexture:TextureBase; final bgBitmap:BitmapData; @@ -119,8 +116,8 @@ class GrabbableCamera extends FlxCamera // also clear grabbed bitmaps for (bitmap in grabbed) { - texturePool.push(@:privateAccess bitmap.__texture); - bitmap.dispose(); + texturePool.push(bitmap.__texture); + bitmap.dispose(); // this doesn't release the texture } grabbed.clear(); }