Fix texture validation logic (#2509)

* fix mip level computation for asmjs and add support for srgb textures in es2/webgl

* fix BX_TRACE in glcontext_html5.cpp

* fix wrong logic in texture validation

Co-authored-by: Sebastian Marketsmueller <sebastianm@hq.unity3d.com>
Co-authored-by: Vladimir Vukicevic <vladimir@pobox.com>
This commit is contained in:
Sebastian Marketsmueller
2021-05-06 10:58:37 -07:00
committed by GitHub
parent 97c4abef01
commit 582dfc1e4c
2 changed files with 1 additions and 2 deletions

View File

@@ -140,7 +140,6 @@ namespace bgfx { namespace gl
}
error = (int) context;
}
BX_TRACE("Failed to create WebGL context. (Canvas handle: '%s', last attempt error %d)", canvas, error);
return NULL;
}