Revision: 54868
http://brlcad.svn.sourceforge.net/brlcad/?rev=54868&view=rev
Author: brlcad
Date: 2013-03-26 02:49:07 +0000 (Tue, 26 Mar 2013)
Log Message:
-----------
not just rare but unlikely that there are thousands of light sources, so let
them be allocated on the system heap. pretty big struct (295 bytes)
Modified Paths:
--------------
brlcad/trunk/src/liboptical/sh_light.c
Modified: brlcad/trunk/src/liboptical/sh_light.c
===================================================================
--- brlcad/trunk/src/liboptical/sh_light.c 2013-03-26 02:16:56 UTC (rev
54867)
+++ brlcad/trunk/src/liboptical/sh_light.c 2013-03-26 02:49:07 UTC (rev
54868)
@@ -582,7 +582,7 @@
bu_free(lsp->lt_sample_pts, "free light samples array");
}
lsp->l.magic = 0; /* sanity */
- BU_PUT(lsp, struct light_specific);
+ bu_free(lsp, "struct light_specific");
}
@@ -601,7 +601,7 @@
BU_CK_VLS(matparm);
- BU_GET(lsp, struct light_specific);
+ BU_ALLOC(lsp, struct light_specific);
BU_LIST_INIT_MAGIC(&(lsp->l), LIGHT_MAGIC);
lsp->lt_intensity = 1.0; /* Lumens */
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits