Hi,
Is the device running latest firmware?
Can you run the app, make a system screenshot (typically by holding Power+Back buttons combination) and attach it here?
Some Android devices have issue with OpenGL, that if the Alpha Channel of the render buffer is zero, then those pixels will not display.
Because of that, I had to force R8G8B8X8 render buffer instead of R8G8B8A8, which should ignore the alpha channel.
Quote:Trying config C:0, D:0, S:0, A:0, configs:1
EGL OK
Renderer.main: 1024x580, type: R8G8B8X8
That did help for some devices, however apparently it didn't help for your device.
Perhaps it has something to do with gl/egl config, currently I'm setting it up like this:
Code:
FREPD(c, 2) // colors (process this as 1st in loop as it's most important)
FREPD(d, 3) // depth (process this as 2nd in loop as it's more important)
FREPD(s, 2) // stencil (process this as 3rd in loop as it's less important)
FREPD(a, 2) // alpha (process this as 4th in loop as it's least important)
{
has_alpha=(c==0 && a==1);
bit16 =(c==1);
EGLint attribs[]=
{
EGL_SURFACE_TYPE , EGL_WINDOW_BIT,
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
EGL_BLUE_SIZE , (c==0) ? 8 : 5,
EGL_GREEN_SIZE , (c==0) ? 8 : 6,
EGL_RED_SIZE , (c==0) ? 8 : 5,
EGL_ALPHA_SIZE , has_alpha ? 8 : 0, // prefer 0 alpha because many Android devices have faulty GPU drivers and they will use alpha channel when displaying renderbuffer content on the screen, making it black where alpha is low
EGL_DEPTH_SIZE , (d==0) ? 24 : (d==1) ? 32 : 16,
EGL_STENCIL_SIZE , (s==0) ? 0 : 8,
EGL_NONE
};
EGLint num_configs; eglChooseConfig(GLDisplay, attribs, &GLConfig, 1, &num_configs); if(LogInit)LogN(S+"Trying config C:"+c+", D:"+d+", S:"+s+", A:"+a+", configs:"+num_configs);
EGL sample documentation here:
http://www.khronos.org/files/egl-1-4-qui...e-card.pdf
I've noticed it has a EGL_TRANSPARENT_TYPE flag, however the default value for it is EGL_NONE which means that shouldn't be the problem, unless your devices uses other value somehow.
I'm creating the GL in a similar way to Google Android NDK tutorial "AndroidNDK/samples/native-activity"