Merge "Allocate textures in multiples of LAYER_SIZE."