mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-24 13:55:04 +02:00
Fix shader complication
This commit is contained in:
@@ -79,7 +79,8 @@ export class Shader {
|
||||
uniforms[info.name] = gl.getUniformLocation(program, info.name);
|
||||
|
||||
if (!uniforms[info.name]) {
|
||||
throw new Error(`Failed to get uniform location (${info.name})`);
|
||||
console.error(`Failed to get uniform location (${info.name})`);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (info.type === gl.SAMPLER_2D) {
|
||||
|
||||
Reference in New Issue
Block a user