File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1365,10 +1365,11 @@ class Video extends openfl.display.Bitmap
13651365 textureMutex .acquire ();
13661366
13671367 final sizeMismatch : Bool = bitmapData != null && (bitmapData .width != textureWidth || bitmapData .height != textureHeight );
1368- final textureMismatch : Bool = bitmapData != null && bitmapData .__texture != null && ! useTexture ;
1369- final imageMismatch : Bool = bitmapData != null && bitmapData .image != null && useTexture ;
1368+ final dataMismatch : Bool = bitmapData != null && (
1369+ if (useTexture ) bitmapData .image != null && Lib .current .stage ?. context3D != null
1370+ else bitmapData .__texture != null );
13701371
1371- if (bitmapData == null || sizeMismatch || textureMismatch || imageMismatch )
1372+ if (bitmapData == null || sizeMismatch || dataMismatch )
13721373 {
13731374 if (bitmapData != null )
13741375 {
You can’t perform that action at this time.
0 commit comments