TINYGL: Initialise z buffer (valgrind)

This commit is contained in:
Vincent Pelletier 2016-07-21 05:03:36 +02:00
parent d4a50ba13f
commit f272c85704

View File

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