Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-07-13 14:26:36 +0400
committerTon Roosendaal <ton@blender.org>2006-07-13 14:26:36 +0400
commit2899d1da35b9e24aad2374164e0d18d541932c4a (patch)
tree4f90dfb42f538a97e427216dd2ab74da81e80f7e /source/blender/render/intern/include/render_types.h
parent6ba882630dbf25b5ec31d3ae83525b770540f045 (diff)
Paranoia commit to eliminate threads issues or uninitialized var stuff.
- thread render stores per thread and per lamp the last intersected shadow face - the Isect struct, for intersections, could use a couple of extra zeros on start.
Diffstat (limited to 'source/blender/render/intern/include/render_types.h')
-rw-r--r--source/blender/render/intern/include/render_types.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/render/intern/include/render_types.h b/source/blender/render/intern/include/render_types.h
index ab30935276c..8f0a85bd177 100644
--- a/source/blender/render/intern/include/render_types.h
+++ b/source/blender/render/intern/include/render_types.h
@@ -48,6 +48,8 @@ struct GHash;
#define TABLEINITSIZE 1024
#define LAMPINITSIZE 256
+ /* hardcoded maximum now, for optimize tables */
+#define MAX_THREADS 2
typedef struct SampleTables
{
@@ -335,7 +337,7 @@ typedef struct LampRen
short YF_glowtype;
/* ray optim */
- VlakRen *vlr_last;
+ VlakRen *vlr_last[MAX_THREADS];
struct MTex *mtex[MAX_MTEX];
} LampRen;