updateVideoTexture method

void updateVideoTexture(
  1. VideoTexture texture
)

Implementation

void updateVideoTexture(VideoTexture texture) {
  var frame = info.render["frame"];

  // Check the last frame we updated the VideoTexture

  if (_videoTextures[texture] != frame) {
    _videoTextures[texture] = frame;
    texture.update();
  }
}