POV-Ray : Newsgroups : povray.programming : bugs in lighting.cpp : bugs in lighting.cpp Server Time
3 Jul 2024 05:45:57 EDT (-0400)
  bugs in lighting.cpp  
From: Bill Hails
Date: 5 Mar 2004 03:40:39
Message: <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.

-- 
Bill Hails


Post a reply to this message

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