mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-20 23:01:16 +00:00
warning: deleting 'void*' is undefined [-Wdelete-incomplete] warning
Some DirectX sdk's declars D3DRMIMAGE::buffer1 and D3DRMIMAGE::buffer2 as a void pointer.
This commit is contained in:
parent
6fdcc9c929
commit
8caa0653a8
@ -81,7 +81,7 @@ TglD3DRMIMAGE::TglD3DRMIMAGE(
|
||||
void TglD3DRMIMAGE::Destroy()
|
||||
{
|
||||
if (m_texelsAllocatedByClient == 0) {
|
||||
delete m_image.buffer1;
|
||||
delete[] ((char*) m_image.buffer1);
|
||||
}
|
||||
delete m_image.palette;
|
||||
}
|
||||
@ -111,7 +111,7 @@ Result TglD3DRMIMAGE::CreateBuffer(int width, int height, int depth, void* pBuff
|
||||
m_image.bytes_per_line = width;
|
||||
|
||||
if (!m_texelsAllocatedByClient) {
|
||||
delete[] m_image.buffer1;
|
||||
delete[] ((char*) m_image.buffer1);
|
||||
m_image.buffer1 = NULL;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user