bug fixes to rendering trianglelists