librender: fix a crash when only one mip level was specified
Make cube larger for texture test
librender: TextureSampler cleanup