added support for indexed drawing with glDrawElements