You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the function set viewWidth has a bug in the branch when _textureWidth is not larger than _viewWidth. it then sets the height of the _renderToTextureRect instead of the width:
public function set viewWidth(value : int) : void
{
if (value == _viewWidth) return;
_viewWidth = value;
_buffersInvalid = true;
_textureWidth = TextureUtils.getBestPowerOf2(_viewWidth);
if (_textureWidth > _viewWidth) {
_renderToTextureRect.x = uint((_textureWidth-_viewWidth)*.5);
_renderToTextureRect.width = _viewWidth;
}
else {
_renderToTextureRect.x = 0;
_renderToTextureRect.height = _textureHeight;
}
dispatchEvent(new Event(Event.RESIZE));
}
_renderToTextureRect.height = _textureHeight;
must be replaced with
_renderToTextureRect.width = _textureWidth;
The text was updated successfully, but these errors were encountered:
the function set viewWidth has a bug in the branch when _textureWidth is not larger than _viewWidth. it then sets the height of the _renderToTextureRect instead of the width:
_renderToTextureRect.height = _textureHeight;
must be replaced with
_renderToTextureRect.width = _textureWidth;
The text was updated successfully, but these errors were encountered: