CardboardPassthrough
CardboardPassthrough copied to clipboard
gl_invalid_enum in glActiveTexture
Hi
This here is incorrect: https://github.com/Sveder/CardboardPassthrough/blob/master/Cardboard%20Version/src/com/sveder/cardboardpassthrough/MainActivity.java#L428
It causes a gl_invalid_enum error, and doesn't change the active texture, it'll just stay GL_TEXTURE0, which is the default. So everything still works, but it'll spam your logcat with gl errors.
It should be GLES20.glActiveTexture(GLES20.GL_TEXTURE0);
instead.
You are probably correct, but I'm travelling and can't change that now. If you submit a pull request I'll accept it.