preload MovieTexture with black

This commit is contained in:
David Rose 2012-01-26 21:50:19 +00:00
parent 9bb99f9120
commit 75f4a86aba
1 changed files with 5 additions and 0 deletions

View File

@ -284,6 +284,11 @@ do_load_one(Texture::CData *cdata_tex,
cdata->_pages[z]._color = color;
cdata->_pages[z]._alpha = alpha;
do_recalculate_image_properties(cdata, cdata_tex, options);
// Make sure the image data is initially black, which is nice for
// padded textures.
PTA_uchar image = make_ram_image();
memset(image.p(), 0, image.size());
return true;
}