Game Development Community

Edge of Atlas + Shadow = Crash

by Jeremiah Fulbright · in Torque Game Engine Advanced · 12/16/2007 (3:55 pm) · 1 replies

I had gotten a report from a team member about some crashes on edges of maps. I got to looking and it seems that its crashing because its doing a shadow render, but if you're on the edge of atlas or possibly falling off of the terrain, it will crash..

GFXD3DDevice::setActiveRenderSurface - Cannot have an active render target bound to a texture sampler!

I'm not sure how to fix this, since theres not necessarily a way to tell if we're going to actually project onto something or not, is there?

Any help would be greatly appreciated!

#1
12/16/2007 (4:05 pm)
After some more looking, it seems to happen on certain Atlas terrains, so not sure what is completely responsible. I changed it from a Fatal assert to a Warning, with no visible consequences...