When I create and destroy my egl client (very much the same as the hello_triangle) in a loop, it fails to initialize after 1024 iterations exactly. All the time, without dependency on resolution of textures it is 1024 iterations. Line where it falls:
eglCreateWindowSurface( display, config, &nativewindow, NULL);
Can anybody help to find out the reason?
I tried to put in the same kind of loop hello_triangle example, but there is the same problem after the same 1024 iterations. So it looks like:
Code: Select all
int k=0;
for(k=0; 1; k++){
bcm_host_init();
memset(state, 0, sizeof(*state) );
.....
exit_func();
bcm_host_deinit();
printf("%d\n",k);
}