mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 03:10:22 +00:00
TINYGL: Initialise z buffer (valgrind)
This commit is contained in:
parent
d4a50ba13f
commit
f272c85704
@ -95,6 +95,7 @@ FrameBuffer::FrameBuffer(int width, int height, const Graphics::PixelBuffer &fra
|
||||
size = this->xsize * this->ysize * sizeof(unsigned int);
|
||||
|
||||
this->_zbuf = (unsigned int *)gl_malloc(size);
|
||||
memset(this->_zbuf, 0, size);
|
||||
|
||||
if (!frame_buffer) {
|
||||
byte *pixelBuffer = (byte *)gl_malloc(this->ysize * this->linesize);
|
||||
|
Loading…
Reference in New Issue
Block a user