(cb)
| 62 | } |
| 63 | |
| 64 | getGLInstance(cb) { |
| 65 | if(this.init) { |
| 66 | cb(this.props.modal) |
| 67 | } else { |
| 68 | this.initing = true |
| 69 | this.props.modal.init(this.refs.webglDom, () => { |
| 70 | cb(this.props.modal) |
| 71 | this.init = true |
| 72 | this.initing = false |
| 73 | }) |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | render() { |
| 78 | const style = { |