I think it is strange that I've had this similair problem in two versions. I tested it on another PC, and there it gives an error, too.
Removing the oval did solve the problem! Also when I removed the two 'SetBuffer' commands: no error.
The bug appears after a fixed number of frames.
PC1:2330 PC2:3200
It doesn't matter where I enter the 'loop'. Maybe it is a problem with releasing something ?
All other bugs with RenderWorld() involved some kind of memory leak, for instance too much triangles on a surface.
GetSurfaceBrush creates a new brush, but the texture applied to it, is it a copy too ? I checked if the handle of this returned texture is the same as the original handle, and it is the same.
Removing the oval did solve the problem! Also when I removed the two 'SetBuffer' commands: no error.
The bug appears after a fixed number of frames.
PC1:2330 PC2:3200
It doesn't matter where I enter the 'loop'. Maybe it is a problem with releasing something ?
All other bugs with RenderWorld() involved some kind of memory leak, for instance too much triangles on a surface.
GetSurfaceBrush creates a new brush, but the texture applied to it, is it a copy too ? I checked if the handle of this returned texture is the same as the original handle, and it is the same.