Skip to content

Commit 9c3d004

Browse files
committed
Minor tweak to UInt enum usage and also update to haxelib info for 1.0.4-alpha
1 parent 58a2064 commit 9c3d004

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

backends/html5/openfl/display3D/Context3D.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,8 @@ class Context3D
432432
supportsAnisotropy = (ext != null);
433433
anisotropySupportTested = true;
434434

435-
GL.texParameterf(GL.TEXTURE_2D, 0x84FE, maxSupportedAnisotropy);
436-
maxSupportedAnisotropy = GL.getTexParameter(GL.TEXTURE_2D, 0x84FE);
435+
GL.texParameterf(GL.TEXTURE_2D, TEXTURE_MAX_ANISOTROPY_EXT, maxSupportedAnisotropy);
436+
maxSupportedAnisotropy = GL.getTexParameter(GL.TEXTURE_2D, TEXTURE_MAX_ANISOTROPY_EXT);
437437
}
438438

439439
if (Std.is (texture, openfl.display3D.textures.Texture)) {

backends/native/openfl/display3D/Context3D.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,8 @@ class Context3D
436436
supportsAnisotropy = (GL.getSupportedExtensions().indexOf("GL_EXT_texture_filter_anisotropic")!=-1);
437437
anisotropySupportTested = true;
438438

439-
GL.texParameterf(GL.TEXTURE_2D, 0x84FE, maxSupportedAnisotropy);
440-
maxSupportedAnisotropy = GL.getTexParameter(GL.TEXTURE_2D, 0x84FE);
439+
GL.texParameterf(GL.TEXTURE_2D, TEXTURE_MAX_ANISOTROPY_EXT, maxSupportedAnisotropy);
440+
maxSupportedAnisotropy = GL.getTexParameter(GL.TEXTURE_2D, TEXTURE_MAX_ANISOTROPY_EXT);
441441
}
442442

443443
if (Std.is (texture, openfl.display3D.textures.Texture)) {

haxelib.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"license": "MIT",
55
"tags": [ "away3d", "3d", "engine", "openfl", "cross", "cpp", "flash", "game", "js", "web", "ios", "android" ],
66
"description": "Away3D is an open source, real time 3D engine for the Flash Platform and has been ported to OpenFL 2.x/Haxe",
7-
"version": "1.0.3-alpha",
8-
"releasenote": "Fixes for mouse interaction",
7+
"version": "1.0.4-alpha",
8+
"releasenote": "Addition of GPU mipmap generation for native & HTML5 targets and support for anisotropic filtering. Other build fixes.",
99
"contributors": [ "Greg209" ],
1010
"dependencies": {
1111
"openfl": "2.0.1"

0 commit comments

Comments
 (0)