Optimized texture preprocessing.

Preprocessing only needs to happen when a processed layer
doesn't exist in the associated pixmap, so only do it when the
number of pixmap layers is 1.