now storing GL texture type in wrapper (needed when reading back with glReadPixels).