Skip to content

Commit

Permalink
Increase mixin priority for robustness
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt committed Aug 12, 2024
1 parent 53397cc commit defc4e7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
* to happen when glGetUniformLocation and glGetInteger are called. In our case, this is rather unnecessary, since
* these uniform locations can be trivially cached.
*/
@Mixin(ShaderInstance.class)
// High priority so replacement happens before other mods increase the sampler count, so that we see the updated value
@Mixin(value = ShaderInstance.class, priority = 500)
public abstract class ShaderProgramMixin {
@Shadow
@Final
Expand Down

0 comments on commit defc4e7

Please sign in to comment.