From 9c3d00405da1a2455416bb5a3ec566d9962bb4cd Mon Sep 17 00:00:00 2001 From: Greg Caldwell Date: Wed, 1 Oct 2014 20:09:32 +0100 Subject: [PATCH] Minor tweak to UInt enum usage and also update to haxelib info for 1.0.4-alpha --- backends/html5/openfl/display3D/Context3D.hx | 4 ++-- backends/native/openfl/display3D/Context3D.hx | 4 ++-- haxelib.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/backends/html5/openfl/display3D/Context3D.hx b/backends/html5/openfl/display3D/Context3D.hx index 0391911..d011d7c 100755 --- a/backends/html5/openfl/display3D/Context3D.hx +++ b/backends/html5/openfl/display3D/Context3D.hx @@ -432,8 +432,8 @@ class Context3D supportsAnisotropy = (ext != null); anisotropySupportTested = true; - GL.texParameterf(GL.TEXTURE_2D, 0x84FE, maxSupportedAnisotropy); - maxSupportedAnisotropy = GL.getTexParameter(GL.TEXTURE_2D, 0x84FE); + GL.texParameterf(GL.TEXTURE_2D, TEXTURE_MAX_ANISOTROPY_EXT, maxSupportedAnisotropy); + maxSupportedAnisotropy = GL.getTexParameter(GL.TEXTURE_2D, TEXTURE_MAX_ANISOTROPY_EXT); } if (Std.is (texture, openfl.display3D.textures.Texture)) { diff --git a/backends/native/openfl/display3D/Context3D.hx b/backends/native/openfl/display3D/Context3D.hx index fae151b..66c6b0c 100755 --- a/backends/native/openfl/display3D/Context3D.hx +++ b/backends/native/openfl/display3D/Context3D.hx @@ -436,8 +436,8 @@ class Context3D supportsAnisotropy = (GL.getSupportedExtensions().indexOf("GL_EXT_texture_filter_anisotropic")!=-1); anisotropySupportTested = true; - GL.texParameterf(GL.TEXTURE_2D, 0x84FE, maxSupportedAnisotropy); - maxSupportedAnisotropy = GL.getTexParameter(GL.TEXTURE_2D, 0x84FE); + GL.texParameterf(GL.TEXTURE_2D, TEXTURE_MAX_ANISOTROPY_EXT, maxSupportedAnisotropy); + maxSupportedAnisotropy = GL.getTexParameter(GL.TEXTURE_2D, TEXTURE_MAX_ANISOTROPY_EXT); } if (Std.is (texture, openfl.display3D.textures.Texture)) { diff --git a/haxelib.json b/haxelib.json index 72d660a..028bbbc 100644 --- a/haxelib.json +++ b/haxelib.json @@ -4,8 +4,8 @@ "license": "MIT", "tags": [ "away3d", "3d", "engine", "openfl", "cross", "cpp", "flash", "game", "js", "web", "ios", "android" ], "description": "Away3D is an open source, real time 3D engine for the Flash Platform and has been ported to OpenFL 2.x/Haxe", - "version": "1.0.3-alpha", - "releasenote": "Fixes for mouse interaction", + "version": "1.0.4-alpha", + "releasenote": "Addition of GPU mipmap generation for native & HTML5 targets and support for anisotropic filtering. Other build fixes.", "contributors": [ "Greg209" ], "dependencies": { "openfl": "2.0.1"