Not passing the texture correctly, perhaps in cpp source?