Patch HTML5 GL compressedTexImage (thanks @hklindworth)

This commit is contained in:
Joshua Granick
2017-04-17 12:57:09 -07:00
parent da66394b92
commit 414ceda3c1

View File

@@ -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) {