Skip to content

Commit

Permalink
bind frames textures before drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
mi-sts committed Apr 9, 2024
1 parent a7c57f7 commit 50faced
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import kotlinx.coroutines.launch
import org.joml.Matrix4f
import org.joml.Vector2f
import org.joml.Vector2i
import org.lwjgl.opengl.GL13.GL_TEXTURE0
import org.lwjgl.opengl.GL13.glActiveTexture
import solve.constants.ShadersFrameFragmentPath
import solve.constants.ShadersFrameGeometryPath
import solve.constants.ShadersFrameVertexPath
Expand Down Expand Up @@ -131,6 +133,9 @@ class FramesRenderer(
val batch = getAvailableBatch(null, 0)
batch.pushInt(index)
}

glActiveTexture(GL_TEXTURE0)
bufferFramesArrayTexture?.bind()
}

override fun beforeRender() {
Expand Down

0 comments on commit 50faced

Please sign in to comment.