fix viewers (improve gl compatibility)