mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 22:58:09 +00:00
TINYGL: Fixed mismatch malloc/new
This commit is contained in:
parent
8f76180c5c
commit
d42e8dba6c
@ -121,7 +121,7 @@ FrameBuffer::FrameBuffer(int width, int height, const Graphics::PixelFormat &for
|
||||
this->_zbuf = (unsigned int *)gl_malloc(size);
|
||||
memset(this->_zbuf, 0, size);
|
||||
|
||||
byte *pixelBuffer = (byte *)gl_malloc(this->ysize * this->linesize);
|
||||
byte *pixelBuffer = new byte[this->ysize * this->linesize];
|
||||
this->pbuf.set(this->cmode, pixelBuffer);
|
||||
this->frame_buffer_allocated = 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user