glColor3i( int r, int g ,int b ),一看glColor3i,以为i的值域是从0到255,但实际上是由0到INT_MAX,而且INT_MAX还要来源于头文件limit.h。 参考链接:http://bbs.csdn.net/topics/290078461