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-X,
which is subscribed to mesa in ubuntu.
_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : [email protected]
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help : https://help.launchpad.net/ListHelp