Fixed a crash on some builds

see issue 793
This commit is contained in:
Oliver Duis 2011-06-23 19:10:01 +02:00
parent 86d600a8b3
commit 303a7ad149

View File

@ -25,22 +25,17 @@
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
//static float *dirwt;
static LUTf dirwt (0x10000);
static LUTf dirwt;
static void __attribute__((constructor)) setup_dirwt()
{
//dirwt = new float[0x10000];
dirwt (0x10000);
//set up directional weight function
for (int i=0; i<0x10000; i++)
dirwt[i] = 1.0/SQR(1.0+i);
}
/*static void __attribute__((destructor)) cleanup_dirwt()
{
delete [] dirwt;
}*/
void RawImageSource::fast_demo(int winx, int winy, int winw, int winh) {
//int winx=0, winy=0;
//int winw=W, winh=H;