On Tue, 25 Sep 2007 11:56:36 +0200 Souvarine <[EMAIL PROTECTED]> wrote:
> Hi all. > > I've been looking for the big bad bug that makes soya terrain crash. It > wasn't too difficult to find, it is just an uninitialized variable. > In terrain.pyx in _render function (line 1132) there is an int named > "index" that is used as parameter in some functions but that is not > initialized before causing memory corruption. This explains the random > nature of that bug since memory corruption can sometime be harmless and > some other times crash the program. > > What is really strange is that initialization instructions for "index" > have been commented. I've look in the SVN and found that this bug in in > soya for a really long long time. > > Since I don't know why those initialization instructions have been > commented I don't know exactly what should be done to correct that bug > properly. I will let that task to the one who did it :) Actually I think I have commented the lines initing index at the same time I comment the glArrayElement and replace them by direct call to glVertex. I probably did not see that index was also used elsewhere :-( Thanks :-) Jiba
signature.asc
Description: PGP signature
_______________________________________________ Soya-user mailing list Soya-user@gna.org https://mail.gna.org/listinfo/soya-user