1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-23 03:32:32 +00:00

Missed an initialisation. Fixed!

This commit is contained in:
Thomas Harte 2016-12-06 07:26:23 -05:00
parent 0fee8096c1
commit f388ba11cc

View File

@ -42,7 +42,8 @@ TextureBuilder::TextureBuilder(size_t bytes_per_pixel, GLenum texture_unit) :
write_areas_start_x_(0),
write_areas_start_y_(0),
is_full_(false),
did_submit_(false)
did_submit_(false),
number_of_write_areas_(0)
{
image_.resize(bytes_per_pixel * InputBufferBuilderWidth * InputBufferBuilderHeight);
glGenTextures(1, &texture_name_);