Skip to content

Commit d699fde

Browse files
committed
Removing it in fact did not break anything (removed commented out block of code)
1 parent f5d508b commit d699fde

1 file changed

Lines changed: 0 additions & 34 deletions

File tree

source/flx3d/_internal/TextureView3D.hx

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -154,40 +154,6 @@ class TextureView3D extends View3D
154154
// register that a view has been rendered
155155
stage3DProxy.bufferClear = false;
156156
}
157-
158-
// idk if i need this but i'll keep commented in case removing it breaks anything
159-
/*private override function updateBackBuffer():Void {
160-
// No reason trying to configure back buffer if there is no context available.
161-
// Doing this anyway (and relying on _stage3DProxy to cache width/height for
162-
// context does get available) means usesSoftwareRendering won't be reliable.
163-
if (_stage3DProxy.context3D != null && !_shareContext) {
164-
if (_globalWidth > 0 && _globalHeight > 0) {
165-
// Backbuffers are limited to 2048x2048 in software mode and
166-
// trying to configure the backbuffer to be bigger than that
167-
// will throw an error. Capping the value is a graceful way of
168-
// avoiding runtime exceptions for developers who are unable
169-
// to test their Away3D implementation on screens that are
170-
// large enough for this error to ever occur.
171-
if (_stage3DProxy.usesSoftwareRendering) {
172-
// Even though these checks where already made in the width
173-
// and height setters, at that point we couldn't be sure that
174-
// the context had even been retrieved and the software flag
175-
// thus be reliable. Make checks again.
176-
if (_globalWidth > 2048)
177-
_globalWidth = 2048;
178-
if (_globalHeight > 2048)
179-
_globalHeight = 2048;
180-
}
181-
182-
_stage3DProxy.configureBackBuffer(Std.int(_globalWidth), Std.int(_globalHeight), _antiAlias, true);
183-
_backBufferInvalid = false;
184-
} else {
185-
/*var stageBR:Point = new Point(stage.x + stage.stageWidth, stage.y + stage.stageHeight);
186-
width = parent != null ? parent.globalToLocal(stageBR).x - _localTLPos.x : stage.stageWidth;
187-
height = parent != null ? parent.globalToLocal(stageBR).y - _localTLPos.y : stage.stageHeight;* /
188-
}
189-
}
190-
}*/
191157
}
192158

193159
class BitmapDataCrashFix extends BitmapData

0 commit comments

Comments
 (0)