Hi All. I'm using clutter 0.8.8 with eglx backend and gles 1.1 on an embed system.
Sometimes, but I see crashed situation when it set up viewport. Below code of cogl_perspective function causes div 0 when y == 0 #define m ctx->inverse_projection M(0, 0) = CFX_QDIV (CFX_ONE, x); M(1, 1) = CFX_QDIV (CFX_ONE, y); M(2, 3) = -CFX_ONE; M(3, 2) = CFX_QDIV (CFX_ONE, d); M(3, 3) = CFX_QDIV (c, d); #undef m I got some more infomation from gdb. They are passed values to cogl_perspective function from cogl_setup_viewport. (gdb) p fovy $13 = 1124509916 (gdb) p aspect $14 = 1355920 (gdb) p z_near $15 = -1095977652 (gdb) p z_far $16 = 1124134704 I have no idea why calculated "y" will be 0. Please let me know whether can I add exception handling when y becomes 0. Thank you. BR. rubric.
