[Scummvm-git-logs] scummvm master -> d42e8dba6c3b10bf554723d6adb5ea20ba50b326
aquadran
noreply at scummvm.org
Sat Nov 27 17:32:16 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
d42e8dba6c TINYGL: Fixed mismatch malloc/new
Commit: d42e8dba6c3b10bf554723d6adb5ea20ba50b326
https://github.com/scummvm/scummvm/commit/d42e8dba6c3b10bf554723d6adb5ea20ba50b326
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2021-11-27T18:32:10+01:00
Commit Message:
TINYGL: Fixed mismatch malloc/new
Changed paths:
graphics/tinygl/zbuffer.cpp
diff --git a/graphics/tinygl/zbuffer.cpp b/graphics/tinygl/zbuffer.cpp
index 873461d9e3..50e37848ad 100644
--- a/graphics/tinygl/zbuffer.cpp
+++ b/graphics/tinygl/zbuffer.cpp
@@ -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;
More information about the Scummvm-git-logs
mailing list