- fixed compilation warning reported by Clang

src/rendering/hwrenderer/postprocessing/hw_postprocess.cpp:1007:13: warning: delete called on non-final 'PPTexture' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor]
This commit is contained in:
alexey.lysiuk 2019-05-06 16:02:44 +03:00
parent 97375feee6
commit a897751fb7

View file

@ -241,7 +241,7 @@ public:
if (Next) Next->Prev = this; if (Next) Next->Prev = this;
} }
~PPResource() virtual ~PPResource()
{ {
if (Next) Next->Prev = Prev; if (Next) Next->Prev = Prev;
if (Prev) Prev->Next = Next; if (Prev) Prev->Next = Next;