POV-Ray : Newsgroups : povray.programming : bugs in lighting.cpp : Re: bugs in lighting.cpp Server Time
3 Jul 2024 05:37:30 EDT (-0400)
  Re: bugs in lighting.cpp  
From: Thorsten Froehlich
Date: 10 Mar 2004 06:19:01
Message: <404ef9a5@news.povray.org>
"Bill Hails" <bil### [at] europeyahoo-inccom> schrieb im Newsbeitrag
news:40483d07@news.povray.org...
> Hi,
> during my first delve into the source to investigate a problem I
> was having, I spotted this
>
>         static TEXTURE *warpNormalTextureList[MAX_NESTED_TEXTURES];
>
> and later on
>         if(warpNormalTextures>MAX_NESTED_TEXTURES)
>             Error("Too many nested textures.");
>         warpNormalTextureList[warpNormalTextures++] = Texture;
>
> that should be
>
>         if(warpNormalTextures>=MAX_NESTED_TEXTURES)
>
> unless I'm very much mistaken.
> It occurs in 4 places.

Thanks, I will take care of it.

    Thorsten


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.