Updated texture class to use Glid