Added some GL helper code