Skip to content

Instantly share code, notes, and snippets.

@appspell
Created March 4, 2021 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save appspell/25bb20bf16879f1ebe5fb12c61dba9fd to your computer and use it in GitHub Desktop.
Save appspell/25bb20bf16879f1ebe5fb12c61dba9fd to your computer and use it in GitHub Desktop.
GLES30.glUniform1i(uTextureHandle, 0) // 0 as far as it's slot number 0
GLES30.glActiveTexture(GLES30.GL_TEXTURE0) // same texture slot which we've used on initialization
GLES30.glBindTexture(GLES30.GL_TEXTURE_2D, uTextureId)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment