@quake2ts/engine 0.0.773 → 0.0.774

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -4450,7 +4450,7 @@ function compileShader(gl, type, source) {
4450
4450
  if (!shader) {
4451
4451
  throw new Error("Failed to allocate shader");
4452
4452
  }
4453
- gl.shaderSource(shader, source);
4453
+ gl.shaderSource(shader, source.trim());
4454
4454
  gl.compileShader(shader);
4455
4455
  const ok = gl.getShaderParameter(shader, gl.COMPILE_STATUS);
4456
4456
  if (!ok) {