Fix read of uninitialized memory.

pull/4/head
whitequark 2015-09-07 16:09:44 -07:00
parent 1422d3abd2
commit 06be0d1157
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@
#include "gloffscreen.h"
#include "solvespace.h"
GLOffscreen::GLOffscreen() : _pixels(NULL), _pixels_inv(NULL) {
GLOffscreen::GLOffscreen() : _pixels(NULL), _pixels_inv(NULL), _width(0), _height(0) {
#ifndef __APPLE__
if(glewInit() != GLEW_OK)
oops();