|
@@ -597,8 +597,8 @@
|
|
this._gl.attachShader(shaderProgram, fragmentShader);
|
|
this._gl.attachShader(shaderProgram, fragmentShader);
|
|
|
|
|
|
this._gl.linkProgram(shaderProgram);
|
|
this._gl.linkProgram(shaderProgram);
|
|
-
|
|
|
|
var linked = this._gl.getProgramParameter(shaderProgram, this._gl.LINK_STATUS);
|
|
var linked = this._gl.getProgramParameter(shaderProgram, this._gl.LINK_STATUS);
|
|
|
|
+
|
|
if (!linked) {
|
|
if (!linked) {
|
|
var error = this._gl.getProgramInfoLog(shaderProgram);
|
|
var error = this._gl.getProgramInfoLog(shaderProgram);
|
|
if (error) {
|
|
if (error) {
|
|
@@ -811,6 +811,7 @@
|
|
|
|
|
|
public createTexture(url: string, noMipmap: boolean, invertY: boolean, scene: Scene): WebGLTexture {
|
|
public createTexture(url: string, noMipmap: boolean, invertY: boolean, scene: Scene): WebGLTexture {
|
|
var texture = this._gl.createTexture();
|
|
var texture = this._gl.createTexture();
|
|
|
|
+
|
|
var isDDS = this.getCaps().s3tc && (url.substr(url.length - 4, 4).toLowerCase() === ".dds");
|
|
var isDDS = this.getCaps().s3tc && (url.substr(url.length - 4, 4).toLowerCase() === ".dds");
|
|
|
|
|
|
scene._addPendingData(texture);
|
|
scene._addPendingData(texture);
|
|
@@ -826,7 +827,7 @@
|
|
var loadMipmap = info.mipmapCount > 1 && !noMipmap;
|
|
var loadMipmap = info.mipmapCount > 1 && !noMipmap;
|
|
|
|
|
|
prepareWebGLTexture(texture, this._gl, scene, info.width, info.height, invertY, !loadMipmap, true, () => {
|
|
prepareWebGLTexture(texture, this._gl, scene, info.width, info.height, invertY, !loadMipmap, true, () => {
|
|
- BABYLON.Internals.DDSTools.UploadDDSLevels(this._gl, this.getCaps().s3tc, data, loadMipmap);
|
|
|
|
|
|
+ Internals.DDSTools.UploadDDSLevels(this._gl, this.getCaps().s3tc, data, loadMipmap);
|
|
});
|
|
});
|
|
}, null, scene.database, true);
|
|
}, null, scene.database, true);
|
|
} else {
|
|
} else {
|