| 62 | } |
| 63 | |
| 64 | bool VideoElement::onUpdateTexture(std::shared_ptr<TextureView> textureView) { |
| 65 | auto glTexture = static_cast<const GLTexture*>(textureView->getTexture()); |
| 66 | val::module_property("tgfx").call<void>("uploadToTexture", emscripten::val::module_property("GL"), |
| 67 | source, glTexture->textureID(), false); |
| 68 | return true; |
| 69 | } |
| 70 | } // namespace tgfx |
no test coverage detected