Skip to content

Commit c9a4a24

Browse files
committed
The Rectangle Shape object wouldn't render if it didn't have a stroke, or any other objects on the display list
1 parent b52c63f commit c9a4a24

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
### Bug Fixes
1212

1313
* The `loadPlayerPhoto` function in the Instant Games plugin now listens for the updated Loader event correctly, causing the `photocomplete` event to fire properly.
14+
* The Rectangle Shape object wouldn't render if it didn't have a stroke, or any other objects on the display list (thanks mliko)
1415

1516
### Examples and TypeScript
1617

src/gameobjects/shape/rectangle/RectangleWebGLRenderer.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ var RectangleWebGLRenderer = function (renderer, src, interpolationPercentage, c
6666
fillTint.TR = fillTintColor;
6767
fillTint.BL = fillTintColor;
6868
fillTint.BR = fillTintColor;
69+
70+
pipeline.setTexture2D();
6971

7072
pipeline.batchFillRect(
7173
-dx,

0 commit comments

Comments
 (0)