141014-0037 Texture bug fixes

1.[SOLVED] Texture Rendering was very slow in the previous commit.

  However, it is still not as smooth as Color-based Rendering, which
implies that Color-based rendering still has its value.

2. [SOLVED] In the previous commit, the program can easily crash.

By Zhongzhi Yu (Mark)