GSdx: last commit broke the sw renderer, the compiler seems to misalign the "this" pointer for member callbacks when two base classes have virtual destructors at the same time (or just virtual members, didn't test it).

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1467 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gabest11 2009-07-04 23:52:58 +00:00
parent ae62a56cc1
commit 2ed180d7c0
2 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,8 @@ template<int i> 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)
{

View File

@ -248,6 +248,7 @@ protected:
public:
GSTextureFX();
virtual ~GSTextureFX() {}
virtual bool Create(GSDevice* dev);