Skip to content

Commit

Permalink
Fixes for default HiDPI in OpenFL 9.2 release. Hashlink fixes for DAE…
Browse files Browse the repository at this point in the history
… f64/string casting.
  • Loading branch information
Greg209 committed Aug 30, 2022
1 parent 05afe25 commit ade4131
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion away3d/animators/states/IAnimationState.hx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package away3d.animators.states;

import flash.geom.*;
import openfl.geom.*;

interface IAnimationState
{
Expand Down
4 changes: 2 additions & 2 deletions away3d/core/managers/Stage3DProxy.hx
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ class Stage3DProxy extends EventDispatcher
_enableDepthAndStencil = enableDepthAndStencil;

if (_context3D != null)
_context3D.configureBackBuffer(backBufferWidth, backBufferHeight, antiAlias, enableDepthAndStencil);
_context3D.configureBackBuffer(backBufferWidth, backBufferHeight, antiAlias, enableDepthAndStencil, true, true);
}

/*
Expand Down Expand Up @@ -576,7 +576,7 @@ class Stage3DProxy extends EventDispatcher
// which they may not have been if View3D.render() has yet to be
// invoked for the first time.
if (_backBufferWidth > 0 && _backBufferHeight > 0)
_context3D.configureBackBuffer(_backBufferWidth, _backBufferHeight, _antiAlias, _enableDepthAndStencil);
_context3D.configureBackBuffer(_backBufferWidth, _backBufferHeight, _antiAlias, _enableDepthAndStencil, true, true);

// Dispatch the appropriate event depending on whether context was
// created for the first time or recreated after a device loss.
Expand Down
4 changes: 2 additions & 2 deletions away3d/loaders/parsers/DAEParser.hx
Original file line number Diff line number Diff line change
Expand Up @@ -836,8 +836,8 @@ class DAEParser extends ParserBase
var ambient:DAEColorOrTexture = effect.shader.props.ambient;
var diffuse:DAEColorOrTexture = effect.shader.props.diffuse;
var specular:DAEColorOrTexture = effect.shader.props.specular;
var shininess:Float = effect.shader.props.hasField("shininess") ? Std.parseFloat(effect.shader.props.shininess) : 10;
var transparency:Float = effect.shader.props.hasField("transparency") ? Std.parseFloat(effect.shader.props.transparency) : 1;
var shininess:Float = effect.shader.props.hasField("shininess") ? (Std.isOfType(effect.shader.props.shininess, String) ? Std.parseFloat(effect.shader.props.shininess) : effect.shader.props.shininess) : 10;
var transparency:Float = effect.shader.props.hasField("transparency") ? (Std.isOfType(effect.shader.props.transparency, String) ? Std.parseFloat(effect.shader.props.transparency) : effect.shader.props.transparency) : 1;

if (diffuse != null && diffuse.texture != null && effect.surface != null && _libImages != null) {
var image:DAEImage = _libImages[effect.surface.init_from];
Expand Down

0 comments on commit ade4131

Please sign in to comment.