Fix pixels being freed when not owned. I don't know why D3D worked
at all with this bug. (It doesn't actually impact anything else.)
This commit is contained in:
@@ -146,7 +146,8 @@ RageSurface::RageSurface( const RageSurface &cpy )
|
||||
|
||||
RageSurface::~RageSurface()
|
||||
{
|
||||
delete [] pixels;
|
||||
if( pixels_owned )
|
||||
delete [] pixels;
|
||||
}
|
||||
|
||||
static int GetShiftFromMask( uint32_t mask )
|
||||
|
||||
Reference in New Issue
Block a user