Fix texture sharing on nVidia systems