TINYGL: Fixed mismatch malloc/new
This commit is contained in:
parent
8f76180c5c
commit
d42e8dba6c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue