Figured out the problem actually- I didn't have SCAN_TEXTURE set