Skip to content

Commit

Permalink
Update ShaderTextureCache.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocelot5836 committed Jan 12, 2025
1 parent 5b7ad01 commit 098ceee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private void uploadTextures(ShaderUniformCache cache, int samplerStart) {
hasMissing = true;
long address = MemoryUtil.memAddress0(this.bindings);
int position = this.bindings.position();
MemoryUtil.memCopy(address, address + 1, position - 1);
MemoryUtil.memCopy(address, address + Integer.BYTES, position - 1);
this.bindings.put(0, MissingTextureAtlasSprite.getTexture().getId());

// Delete the last texture binding
Expand Down

0 comments on commit 098ceee

Please sign in to comment.