@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/cjs/index.cjs
CHANGED
|
@@ -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) {
|