i meet the problem when i want to initiate the opengles1.1 in the branch thread in pc emunation version.
i first launch the branch thread in the main thread.
CreateThread( 0, 0, ThreadProc, 0, 0, 0);
and then initiate the opengles in the branch thread , but when running the eglChooseConfig, it reports wrang
i=0;
pi32ConfigAttribs[i++] = EGL_RED_SIZE;
pi32ConfigAttribs[i++] = 5;
pi32ConfigAttribs[i++] = EGL_GREEN_SIZE;
pi32ConfigAttribs[i++] = 6;
pi32ConfigAttribs[i++] = EGL_BLUE_SIZE;
pi32ConfigAttribs[i++] = 5;
pi32ConfigAttribs[i++] = EGL_ALPHA_SIZE;
pi32ConfigAttribs[i++] = 0;
pi32ConfigAttribs[i++] = EGL_SURFACE_TYPE;
pi32ConfigAttribs[i++] = EGL_WINDOW_BIT;
pi32ConfigAttribs[i++] = EGL_NONE;
if (!eglChooseConfig(eglDisplay, pi32ConfigAttribs, &eglConfig, 1, &iConfigs) || (iConfigs != 1))
{
cleanupEgl();
return 0;
}
{
cleanupEgl();
return 0;
}
how could i solve this problem, thanks