mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-12-02 13:00:00 +01:00
Fix shader complication
This commit is contained in:
1 parent
267596a969
commit
0bc329df24
1 file changed
+2
-1
@@ -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