Revert "- error out if destroying a canvas object"

This reverts commit 8e16822ef9.
This commit is contained in:
Rachael Alexanderson 2024-11-08 14:26:51 -05:00
parent d85d04f421
commit 220200d836
No known key found for this signature in database
GPG key ID: 26A8ACCE97115EE0

View file

@ -8,7 +8,6 @@
#include "renderstyle.h" #include "renderstyle.h"
#include "dobject.h" #include "dobject.h"
#include "refcounted.h" #include "refcounted.h"
#include "printf.h"
struct DrawParms; struct DrawParms;
struct FColormap; struct FColormap;
@ -280,7 +279,6 @@ public:
class FCanvas : public DObject class FCanvas : public DObject
{ {
DECLARE_CLASS(FCanvas, DObject) DECLARE_CLASS(FCanvas, DObject)
void OnDestroy() override { I_Error("Calling Destroy on a canvas object is not allowed."); }
public: public:
F2DDrawer Drawer; F2DDrawer Drawer;
FCanvasTexture* Tex = nullptr; FCanvasTexture* Tex = nullptr;