myExample
myExample copied to clipboard
Reading back only luminance or RGB
PboJni.glReadPixels(0, 0, rowStride / pixelStride, inputHeight, GLES30.GL_RGB, GLES30.GL_UNSIGNED_BYTE);
doesn't work for me. I changed the pixel stride to 3 for RGB, and I keep getting W: [SurfaceTexture-1-10470-0] bindTextureImage: clearing GL error: 0x502
Do you know what could be wrong?