Results 1 to 3 of 3

Thread: Khronos' debugging script

  1. #1
    Junior Member
    Join Date
    Aug 2010
    Posts
    17

    Khronos' debugging script

    Hi,
    I did everytnig like it's described here: http://khronos.org/webgl/wiki/Debugging but it seems to doesn't work.
    -I added manually gl.getError function to my draw function and I noticed I had several errors but Khronos' script didn't log anything.
    Does anybody use it (and does it work for him)?

    Thanks,
    gliniak (wglb)

  2. #2
    Junior Member
    Join Date
    Jan 2011
    Posts
    8

    Re: Khronos' debugging script

    Hi there,

    the script is doing something for me, but it is not really usefull, because it doesn't accept neccessary function calls:

    "gl.createShader is not a function"

    I used it on a very minimal example and without the script everything works.

    Can someone please clearify?

    Thank you,
    Silvio.

  3. #3
    Junior Member
    Join Date
    Jan 2011
    Posts
    8

    Re: Khronos' debugging script

    figured it out.

    It was a bad idea to try to use it this way:
    Code :
     for (ii = 0; ii < names.length; ++ii) {
            try {
             //   context = canvas.getContext(names[ii], opt_attribs);
                context = WebGLDebugUtils.makeDebugContext(canvas.getContext(names[ii]));
            } catch(e) {}
            if (context) {
                break;
            }
        }

    of course, I got a debugging context without a gl context this way.

    Code :
        gl = WebGLDebugUtils.makeDebugContext(WebGLUtils.setupWebGL(canvas));

    works.

Similar Threads

  1. Life in a 7kb script
    By enot in forum Developers Coding:Beginner
    Replies: 0
    Last Post: 04-25-2010, 10:56 PM
  2. /etc/init.d/mldaemon script
    By wprice99 in forum OpenML Coding & Technical Issues
    Replies: 1
    Last Post: 08-01-2003, 09:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •