mirror of
https://github.com/dyuri/repa-shader.git
synced 2026-09-24 03:54:22 +00:00
canvas update + demo
This commit is contained in:
+8
-1
@@ -242,7 +242,14 @@ class RepaTexture extends HTMLElement {
|
||||
}
|
||||
|
||||
get shouldUpdate() {
|
||||
return this.ready && (this._forceUpdate || (this.ref && this.ref instanceof HTMLVideoElement && this.ref.readyState === this.ref.HAVE_ENOUGH_DATA));
|
||||
return this.ready &&
|
||||
(this._forceUpdate || (
|
||||
this.ref && (
|
||||
(this.ref instanceof HTMLVideoElement && this.ref.readyState === this.ref.HAVE_ENOUGH_DATA) ||
|
||||
(this.ref instanceof HTMLCanvasElement)
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
get width() {
|
||||
|
||||
Reference in New Issue
Block a user