X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=effect_chain.cpp;h=0985ee4ef185432a959472b149daf29dc8249d2f;hp=19c485c32aea33acb2d6fc8fd57cf848288380f5;hb=a0ced951a3ad27223d71caae71eeeb5c62c6ce77;hpb=0c1fab7813e12580bed0852d9e57b0a3f2768d83 diff --git a/effect_chain.cpp b/effect_chain.cpp index 19c485c..0985ee4 100644 --- a/effect_chain.cpp +++ b/effect_chain.cpp @@ -221,6 +221,7 @@ void EffectChain::finalize() glGenTextures(num_textures, temp_textures); unsigned char *empty = new unsigned char[width * height * 4]; + memset(empty, 0, width * height * 4); for (unsigned i = 0; i < num_textures; ++i) { glBindTexture(GL_TEXTURE_2D, temp_textures[i]); check_error();