mirror of https://github.com/axmolengine/axmol.git
ccx : Change minimum config to RGB565. Add depth buffer and stencil buffer requirements to EGL config.
This commit is contained in:
parent
fc3cd0c68c
commit
57cd5eedef
|
@ -52,9 +52,11 @@ static int engine_init_display(struct engine* engine) {
|
||||||
*/
|
*/
|
||||||
const EGLint attribs[] = {
|
const EGLint attribs[] = {
|
||||||
EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
|
EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
|
||||||
EGL_BLUE_SIZE, 8,
|
EGL_BLUE_SIZE, 5,
|
||||||
EGL_GREEN_SIZE, 8,
|
EGL_GREEN_SIZE, 6,
|
||||||
EGL_RED_SIZE, 8,
|
EGL_RED_SIZE, 5,
|
||||||
|
EGL_DEPTH_SIZE, 16,
|
||||||
|
EGL_STENCIL_SIZE, 8,
|
||||||
EGL_NONE
|
EGL_NONE
|
||||||
};
|
};
|
||||||
EGLint w, h, dummy, format;
|
EGLint w, h, dummy, format;
|
||||||
|
|
Loading…
Reference in New Issue