🔧 Set uniforms only once
This commit is contained in:
+2
-1
@@ -224,6 +224,8 @@ if (utils.isInShellProcess()) {
|
||||
}
|
||||
}
|
||||
`);
|
||||
|
||||
this.set_uniform_value('uShardTexture', 1);
|
||||
};
|
||||
|
||||
// This is overridden to bind the shard texture for drawing. Sadly, this seems to be
|
||||
@@ -240,7 +242,6 @@ if (utils.isInShellProcess()) {
|
||||
// Bind the shard texture.
|
||||
pipeline.set_layer_texture(1, this._shardTexture.get_texture());
|
||||
pipeline.set_layer_wrap_mode(1, Cogl.PipelineWrapMode.REPEAT);
|
||||
this.set_uniform_value('uShardTexture', 1);
|
||||
|
||||
super.vfunc_paint_target(node, paint_context);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user