os: Android 11
glContext: es3.0
I have depth data from depth estimation algorithm, and wanna bind the data to texture.
val texArray = IntArray(1)
glGenTextures(1, texArray, 0)
glBindTexture(GL_TEXTURE_2D, texArray[0])
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR)
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST)
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE)
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE)
glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH_COMPONENT32F, width, height, 0, GL_DEPTH_COMPONENT, GL_FLOAT, floatBuffer)
Then I had a crash
A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 9873 (glThread)
thanks for any help