CardboardPassthrough icon indicating copy to clipboard operation
CardboardPassthrough copied to clipboard

gl_invalid_enum in glActiveTexture

Open nkovacs opened this issue 9 years ago • 1 comments

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.

nkovacs avatar Feb 02 '16 23:02 nkovacs

You are probably correct, but I'm travelling and can't change that now. If you submit a pull request I'll accept it.

Sveder avatar Feb 04 '16 21:02 Sveder