fix weird issue where textures appear on screen before rendering begins