From 0f2e542ca0d88e433ccdab8ed3f7e6b6f9963bd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=8D=9A=7ENex?= <87421482+NexIsDumb@users.noreply.github.com> Date: Tue, 22 Apr 2025 23:49:26 +0200 Subject: [PATCH] lemme actually invert these oop cuz setting an flxgraphic is rarer, at least we let it be a little more optimized in most of cases --- source/funkin/backend/shaders/FunkinShader.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/funkin/backend/shaders/FunkinShader.hx b/source/funkin/backend/shaders/FunkinShader.hx index bd9d5dd1..a2833e81 100644 --- a/source/funkin/backend/shaders/FunkinShader.hx +++ b/source/funkin/backend/shaders/FunkinShader.hx @@ -518,8 +518,8 @@ class FunkinShader extends FlxShader implements IHScriptCustomBehaviour { // shader input!! var bitmap:BitmapData; if (!isNotNull) bitmap = null; - else if (val is FlxGraphic) bitmap = val.bitmap; else if (val is BitmapData) bitmap = val; + else if (val is FlxGraphic) bitmap = val.bitmap; else { throw new ShaderTypeException(name, Type.getClass(val), BitmapData); return null;