diff --git a/plugins/GSdx/GSAlignedClass.h b/plugins/GSdx/GSAlignedClass.h index ec33030892..e17e36159e 100644 --- a/plugins/GSdx/GSAlignedClass.h +++ b/plugins/GSdx/GSAlignedClass.h @@ -25,7 +25,8 @@ template class GSAlignedClass { public: GSAlignedClass() {} - virtual ~GSAlignedClass() {} + + // never put a destructor here, breaks the member callbacks of GSDrawScanline which also inherits IDrawScanline void* operator new (size_t size) { diff --git a/plugins/GSdx/GSTextureFX.h b/plugins/GSdx/GSTextureFX.h index b3b3dcf692..dd7c23773d 100644 --- a/plugins/GSdx/GSTextureFX.h +++ b/plugins/GSdx/GSTextureFX.h @@ -248,6 +248,7 @@ protected: public: GSTextureFX(); + virtual ~GSTextureFX() {} virtual bool Create(GSDevice* dev);