- error out if destroying a canvas object

This commit is contained in:
Rachael Alexanderson 2024-10-22 18:05:06 -04:00
parent a0b0db6f64
commit 8e16822ef9
No known key found for this signature in database
GPG key ID: 26A8ACCE97115EE0

View file

@ -8,6 +8,7 @@
#include "renderstyle.h"
#include "dobject.h"
#include "refcounted.h"
#include "printf.h"
struct DrawParms;
struct FColormap;
@ -279,6 +280,7 @@ public:
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;