Passing forceWebGl parameter on wade.init
Shri

Gio,

I am trying to use the new forceWebGl flag, but I cna't seem to pass the init parameters correctly. Here is what I am doing in the html file.

 <script>
        $(document).ready(function()
        {
	    var options = {};
	    options.forceWebGl = true; 
            wade.init('step1.js',null,options);
        });

    </script>

Where am I going wrong ?

thanks,

Shri

1 Comment
Gio

I think you're doing it right - there seems to be a typo in wade.js (as in the non-minified file that's in the source code folder).

It will be fixed in the next version, if you fancy fixing it yourself in the meantime, edit line 80 and remove the "var" keyword - it shouldn't have been there.

Thanks for pointing it out.

Post a reply
Add Attachment
Submit Reply
Login to Reply