Missing state: 174

12 views
Skip to first unread message

Rich Tibbett

unread,
Jun 16, 2012, 11:26:30 AM6/16/12
to cwe...@googlegroups.com
Hi,

I'm trying to get https://github.com/richtr/Marine-Compass to work
with cWebGL but I'm getting a 'Missing context: 174' error in the
console and the demo is not working [1].

Would you know what is missing from cWebGL to get this demo to work?
Also, any chance that I could get the demo to work with a workaround
or two (e.g. disabling some advanced features if there are any)?

Any feedback would be much appreciated.

- Rich

[1] http://people.opera.com/richt/dev/compass/index.html

Rich Tibbett

unread,
Jun 16, 2012, 11:27:19 AM6/16/12
to cwe...@googlegroups.com
On Sat, Jun 16, 2012 at 5:26 PM, Rich Tibbett <rich.t...@gmail.com> wrote:
> Hi,
>
> I'm trying to get https://github.com/richtr/Marine-Compass to work
> with cWebGL but I'm getting a 'Missing context: 174' error in the
> console and the demo is not working [1].

That should be: I'm getting a 'Missing state: 174' error.

Gordon Williams

unread,
Jun 17, 2012, 3:58:08 AM6/17/12
to cwe...@googlegroups.com

Hi Rich,

I imagine it is a problem with one of your shaders. CWebGL doesn't have anywhere near full glsl support, so maybe start with a very simple shader and add code until it breaks!

However I am not a CWebGL developer... I just contributed some code a while back!

Hope that helps though!

- Gordon

cwe...@cimaron.net

unread,
Jun 17, 2012, 4:40:47 PM6/17/12
to cwe...@googlegroups.com
Hi Guys,

I took a look at your shaders, and it didn't appear to be something that couldn't be handled at the moment, so I added in the missing parser state. I think it might have been for the precision, which has no effect on our generated code. I also had to add in some better WebGL conformance due to the uninitialized "this.shaderProgram.nMatrixUniform" passed to uniformMatrix4fv.

The good news is that the bottom portion of the compass now renders correctly! The top portion does not, and since it's the same shader, I'm not sure why at the moment.

I'm not spending a lot of time on the library right now, but I did compile a new version at http://cimaron.net/cwebgl/build/cWebGL.min.js

-Cimaron
Reply all
Reply to author
Forward
0 new messages