Revert "bug fixes to rendering trianglelists"

This reverts commit 3b21440e4fa8af11a4209173dec2f54553c0c110.