yulu/ShaderCam

Bindtexture image clearing gl error 0x502

AntMarq opened this issue · 3 comments

Hi,

When I run your project, I have a warning about the bindTexture. Your project works but I want to understand why I have this warning.

08-29 13:18:02.520: W/GLConsumer(17697): [unnamed-17697-0] bindTextureImage: clearing GL error: 0x502

Can you explain this please ?

Thanks.

EDIT : Warnings appears only for SDK > 4.2

I believe this problem can be fixed replacing this line

https://github.com/yulu/ShaderCam/blob/master/src/com/littlecheesecake/shadercam/gl/CameraRenderer.java#L194

by this

GLES20.glBindTexture(GLES11Ext.GL_TEXTURE_EXTERNAL_OES, mCameraTexture.getTextureId());

And adding the import.

only appears for sdk=4.2.2 HUAWEI

only appears for sdk=4.2.2 HUAWEI

Also having issue with Oppo phones