I have app with AR functionality and I'm using EasyAR lib for ar and GLSurfaceView for camera preview. When android:hardwareAccelerated="false" in my app it works correctly, but when I switch it to true, I have "white noise" in my preview screen and this errors:
eglQueryContext 32c0 EGL_BAD_ATTRIBUTE
eglQueryContext(2122): error 0x3004 (EGL_BAD_ATTRIBUTE)
updateAcquireFence: Did not find frame.
bindTextureImage: clearing GL error: 0x500
device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glEnable:4892
GL error 0x500 condition
[!GLESv2Validation::allowedEnable(ctx->majorVersion(), ctx->minorVersion(), what)]
device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glEnable:4892 GL error 0x500 condition
[!GLESv2Validation::allowedEnable(ctx->majorVersion(), ctx->minorVersion(), what)]
eglQueryContext 32c0 EGL_BAD_ATTRIBUTE
tid 27715: eglQueryContext(2122): error 0x3004 (EGL_BAD_ATTRIBUTE)