fix duplicate function in create dummy texture