From 220200d83643a02e9521232ecfaff0bc09795317 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Fri, 8 Nov 2024 14:26:51 -0500 Subject: [PATCH] Revert "- error out if destroying a canvas object" This reverts commit 8e16822ef9814f2d157851cfebce3cc7191544df. --- src/common/2d/v_2ddrawer.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/common/2d/v_2ddrawer.h b/src/common/2d/v_2ddrawer.h index 200510aa195..c2be564dc9a 100644 --- a/src/common/2d/v_2ddrawer.h +++ b/src/common/2d/v_2ddrawer.h @@ -8,7 +8,6 @@ #include "renderstyle.h" #include "dobject.h" #include "refcounted.h" -#include "printf.h" struct DrawParms; struct FColormap; @@ -280,7 +279,6 @@ class F2DDrawer class FCanvas : public DObject { DECLARE_CLASS(FCanvas, DObject) - void OnDestroy() override { I_Error("Calling Destroy on a canvas object is not allowed."); } public: F2DDrawer Drawer; FCanvasTexture* Tex = nullptr;