diff --git a/src/js/libpannellum.js b/src/js/libpannellum.js index 8a67c73..99371ad 100644 --- a/src/js/libpannellum.js +++ b/src/js/libpannellum.js @@ -334,8 +334,7 @@ function Renderer(container) { if (imageType == 'equirectangular') { program.backgroundColor = gl.getUniformLocation(program, 'u_backgroundColor'); var color = params.backgroundColor ? params.backgroundColor : [0, 0, 0]; - color.push(1); - gl.uniform4fv(program.backgroundColor, color); + gl.uniform4fv(program.backgroundColor, color.concat([1])); } // Create texture