Use void pointer, fix texture sync