Skip to content

Commit

Permalink
Add missing VBO texture binding
Browse files Browse the repository at this point in the history
  • Loading branch information
xCollateral committed Aug 14, 2024
1 parent 5b26cad commit 2cc8ccf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/net/vulkanmod/render/VBO.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import net.vulkanmod.vulkan.memory.MemoryTypes;
import net.vulkanmod.vulkan.memory.VertexBuffer;
import net.vulkanmod.vulkan.shader.GraphicsPipeline;
import net.vulkanmod.vulkan.texture.VTextureSelector;
import org.joml.Matrix4f;

import java.nio.ByteBuffer;
Expand Down Expand Up @@ -126,6 +127,7 @@ public void drawWithShader(Matrix4f MV, Matrix4f P, GraphicsPipeline pipeline) {

Renderer renderer = Renderer.getInstance();
renderer.bindGraphicsPipeline(pipeline);
VTextureSelector.bindShaderTextures(pipeline);
renderer.uploadAndBindUBOs(pipeline);

if (this.indexBuffer != null)
Expand Down

0 comments on commit 2cc8ccf

Please sign in to comment.