From 414ceda3c1a835735c40703fa4a0ce06009e17cd Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Mon, 17 Apr 2017 12:57:09 -0700 Subject: [PATCH] Patch HTML5 GL compressedTexImage (thanks @hklindworth) --- lime/_backend/html5/HTML5GLRenderContext.hx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lime/_backend/html5/HTML5GLRenderContext.hx b/lime/_backend/html5/HTML5GLRenderContext.hx index f126d8a31..833c3a0d9 100644 --- a/lime/_backend/html5/HTML5GLRenderContext.hx +++ b/lime/_backend/html5/HTML5GLRenderContext.hx @@ -1007,6 +1007,7 @@ class HTML5GLRenderContext { if (Std.is (imageSize, Int)) { srcData = __prepareData (null, srcData); + if (srcData != null && Std.is (srcData, ArrayBuffer)) srcData = new UInt8Array (srcData); if (version > 1 && srcOffset != null) { @@ -1053,6 +1054,7 @@ class HTML5GLRenderContext { if (Std.is (imageSize, Int)) { srcData = __prepareData (null, srcData); + if (srcData != null && Std.is (srcData, ArrayBuffer)) srcData = new UInt8Array (srcData); if (version > 1 && srcOffset != null) {