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:
authorChris Want <cwant@ualberta.ca>2006-01-12 21:34:07 +0300
committerChris Want <cwant@ualberta.ca>2006-01-12 21:34:07 +0300
commitcc2a332907e2e28ebf9ab1fc8b6464000ed18cf5 (patch)
tree142e8c6179abc25231f3b0696423311a9029145f /source/blender/render
parent715794859a99c47a08314acbfe537c4460cb788b (diff)
Optimization -frerun-cse-after-loop (included with -O2) was
causing render to crash on cygwin with gcc 3.4.4. Changed declaration of shadepixel() argument "int facenr" to volatile. Can anybody recommend a more elegant solution?
Diffstat (limited to 'source/blender/render')
-rw-r--r--source/blender/render/intern/source/rendercore.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/rendercore.c b/source/blender/render/intern/source/rendercore.c
index 24751c6a66f..379b5415604 100644
--- a/source/blender/render/intern/source/rendercore.c
+++ b/source/blender/render/intern/source/rendercore.c
@@ -2298,7 +2298,10 @@ void shade_material_loop(ShadeInput *shi, ShadeResult *shr)
/* x,y: window coordinate from 0 to rectx,y */
/* return pointer to rendered face */
-void *shadepixel(float x, float y, int z, int facenr, int mask, float *col, float *rco)
+/* note, facenr declared volatile due to over-eager -O2 optimizations
+ * on cygwin (particularly -frerun-cse-after-loop)
+ */
+void *shadepixel(float x, float y, int z, volatile int facenr, int mask, float *col, float *rco)
{
ShadeResult shr;
ShadeInput shi;