possible bmap_process bug

Posted By: Superku

possible bmap_process bug - 01/02/13 03:56

When I edit an effect file and use bmap_process continously, the engine issues an error message. Something like
if(key_f) bmap_process(...);
helps me currently to avoid the problem. However, when I have a syntax error in my shader, I again get the script crash in the function that called bmap_process.

I'm using the current beta version (and hope this can be fixed).
Posted By: jcl

Re: possible bmap_process bug - 01/02/13 15:48

You mean when AUTORELOAD is set? We'll look into the problem.
Posted By: Superku

Re: possible bmap_process bug - 01/02/13 16:41

Yes, exactly. And thanks!
Example code (sepia.fx contains the effect from the manual but it should not really matter):

Code:
PANEL* panTarget = { bmap = "#256x256x24"; flags = SHOW; } // target bmap
BMAP* bmSrc = "logo_800.jpg"; // source bmap

MATERIAL* mtlSepia =
{
	effect = "sepia.fx";
	flags = AUTORELOAD;
}

function main()
{
	fps_max = 60;
	wait(1); // until DirectX device is opened
	while(1)
	{
		bmap_process(panTarget.bmap,bmSrc,mtlSepia);
		wait(1);
	}
}

© 2024 lite-C Forums