@quake2ts/engine 0.0.773 → 0.0.776

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.
@@ -4451,7 +4451,7 @@ function compileShader(gl, type, source) {
4451
4451
  if (!shader) {
4452
4452
  throw new Error("Failed to allocate shader");
4453
4453
  }
4454
- gl.shaderSource(shader, source);
4454
+ gl.shaderSource(shader, source.trim());
4455
4455
  gl.compileShader(shader);
4456
4456
  const ok = gl.getShaderParameter(shader, gl.COMPILE_STATUS);
4457
4457
  if (!ok) {