TINYGL: Fixed mismatch malloc/new

This commit is contained in:
Paweł Kołodziejski 2021-11-27 18:32:10 +01:00
parent 8f76180c5c
commit d42e8dba6c
No known key found for this signature in database
GPG Key ID: 0BDADC9E74440FF7

View File

@ -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;