X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=include%2Frenderable.h;h=d50ca7a8f57c87e4616f4cd6e5c14b5335d53c23;hb=a76f95464d00854d7b549154b274d8c83202d02b;hp=8b972170ed7c723c786956a966e6f72cc21dffea;hpb=62d99f889c0e98be65f779d3983109c84ce58cec;p=xonotic%2Fnetradiant.git diff --git a/include/renderable.h b/include/renderable.h index 8b972170..d50ca7a8 100644 --- a/include/renderable.h +++ b/include/renderable.h @@ -48,7 +48,7 @@ enum EStyle virtual void PushState() = 0; virtual void PopState() = 0; virtual void SetState( Shader* state, EStyle mode ) = 0; -virtual const EStyle getStyle() const = 0; +virtual EStyle getStyle() const = 0; virtual void Highlight( EHighlightMode mode, bool bEnable = true ) = 0; virtual void setLights( const LightList& lights ){ } @@ -60,6 +60,7 @@ class VolumeTest; class Renderable { public: +virtual ~Renderable() = default; STRING_CONSTANT( Name, "Renderable" ); virtual void renderSolid( Renderer& renderer, const VolumeTest& volume ) const = 0;