@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/browser/index.global.js +1 -1
- package/dist/browser/index.global.js.map +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/render/shaderProgram.d.ts.map +1 -1
- package/package.json +6 -5
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) {
|