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,6 +146,7 @@ RageSurface::RageSurface( const RageSurface &cpy )
|
|||||||
|
|
||||||
RageSurface::~RageSurface()
|
RageSurface::~RageSurface()
|
||||||
{
|
{
|
||||||
|
if( pixels_owned )
|
||||||
delete [] pixels;
|
delete [] pixels;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user