Thank you for including a test program that demonstrates the problem.
I think the bug probably is in the intel specific part of mesa. Using your
program I traced the glutCreateWindow call and added lines like
printf("Random number 11 (fgOpenWindow): %i\n",rand());
in relevant places in the source code of the freeglut source package.
glutCreateWindow (in src/freeglut_window.c) calls fgCreateWindow (in
src/freeglut_structure.c) which calls fgOpenWindow (in src/freeglut_window.c)
which again calls glXMakeCurrent like this:
glXMakeCurrent(
fgDisplay.Display,
window->Window.Handle,
window->Window.Context
);
Before the glXMakeCurrent call, rand() returns a random number, while
after the call it returns the same every time.
** Changed in: mesa (Ubuntu)
Status: New => Triaged
** Changed in: mesa (Ubuntu)
Importance: Undecided => Low
--
Using glutCreateWindow() seeds RNG with predictable value
https://bugs.launchpad.net/bugs/421651
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs