Skip to content

Commit 2cc8ccf

Browse files
committed
Add missing VBO texture binding
1 parent 5b26cad commit 2cc8ccf

File tree

1 file changed

+2
-0
lines changed
  • src/main/java/net/vulkanmod/render

1 file changed

+2
-0
lines changed

src/main/java/net/vulkanmod/render/VBO.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import net.vulkanmod.vulkan.memory.MemoryTypes;
1515
import net.vulkanmod.vulkan.memory.VertexBuffer;
1616
import net.vulkanmod.vulkan.shader.GraphicsPipeline;
17+
import net.vulkanmod.vulkan.texture.VTextureSelector;
1718
import org.joml.Matrix4f;
1819

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

127128
Renderer renderer = Renderer.getInstance();
128129
renderer.bindGraphicsPipeline(pipeline);
130+
VTextureSelector.bindShaderTextures(pipeline);
129131
renderer.uploadAndBindUBOs(pipeline);
130132

131133
if (this.indexBuffer != null)

0 commit comments

Comments
 (0)