make prog2 a legal program (texture reference fix)