Skip to content

Commit f80002a

Browse files
committed
Always check the buffers when rendering an individual child.
1 parent 7577b91 commit f80002a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/render3d/DisplayObjectContainerIn3D.as

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,6 @@ public class DisplayObjectContainerIn3D extends Sprite implements IRenderIn3D {S
10621062
if (!spriteBitmaps[dispObj] || unrenderedChildren[dispObj] || !bitmapsByID[spriteBitmaps[dispObj]]) {
10631063
if (checkChildRender(dispObj)) {
10641064
packTextureBitmaps();
1065-
checkBuffers();
10661065
}
10671066
}
10681067

@@ -1132,6 +1131,7 @@ public class DisplayObjectContainerIn3D extends Sprite implements IRenderIn3D {S
11321131

11331132
// TODO: Find out why the index buffer isn't uploaded sometimes
11341133
indexBufferUploaded = false;
1134+
checkBuffers();
11351135
uploadBuffers();
11361136

11371137
var changeBackBuffer:Boolean = (bmd.width > scissorRect.width || bmd.height > scissorRect.height);

0 commit comments

Comments
 (0)