Fixed a crash on some builds
see issue 793
This commit is contained in:
parent
86d600a8b3
commit
303a7ad149
@ -25,22 +25,17 @@
|
|||||||
|
|
||||||
|
|
||||||
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
//static float *dirwt;
|
static LUTf dirwt;
|
||||||
static LUTf dirwt (0x10000);
|
|
||||||
|
|
||||||
static void __attribute__((constructor)) setup_dirwt()
|
static void __attribute__((constructor)) setup_dirwt()
|
||||||
{
|
{
|
||||||
//dirwt = new float[0x10000];
|
dirwt (0x10000);
|
||||||
|
|
||||||
//set up directional weight function
|
//set up directional weight function
|
||||||
for (int i=0; i<0x10000; i++)
|
for (int i=0; i<0x10000; i++)
|
||||||
dirwt[i] = 1.0/SQR(1.0+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) {
|
void RawImageSource::fast_demo(int winx, int winy, int winw, int winh) {
|
||||||
//int winx=0, winy=0;
|
//int winx=0, winy=0;
|
||||||
//int winw=W, winh=H;
|
//int winw=W, winh=H;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user