Fix read of uninitialized memory.
parent
1422d3abd2
commit
06be0d1157
|
@ -12,7 +12,7 @@
|
||||||
#include "gloffscreen.h"
|
#include "gloffscreen.h"
|
||||||
#include "solvespace.h"
|
#include "solvespace.h"
|
||||||
|
|
||||||
GLOffscreen::GLOffscreen() : _pixels(NULL), _pixels_inv(NULL) {
|
GLOffscreen::GLOffscreen() : _pixels(NULL), _pixels_inv(NULL), _width(0), _height(0) {
|
||||||
#ifndef __APPLE__
|
#ifndef __APPLE__
|
||||||
if(glewInit() != GLEW_OK)
|
if(glewInit() != GLEW_OK)
|
||||||
oops();
|
oops();
|
||||||
|
|
Loading…
Reference in New Issue