mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-03-13 22:42:07 +00:00
- error out if destroying a canvas object
This commit is contained in:
parent
a0b0db6f64
commit
8e16822ef9
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue