Results 1 to 5 of 5

Thread: Unexplainable Error in gDEBug

  1. #1

    Unexplainable Error in gDEBug

    I have put my code on pastebin, because it has hightlighting and Linenumbers, which makes it easier:

    The Error:
    OpenGL Debug Output: API Error, glGetShaderiv parameter <shader> has an invalid value '1': must be a valid shader object name (GL_INVALID_VALUE)

    Now, I use only 1 glShaderiv Function and there is no error.
    Also, in my Code glError() returns nothing but GL_NO_ERROR.
    According to gDEBug, my Error is on Line 60, when I look at the Stacktrace.
    But when I place a check there, everything is okay.
    Maybe it is a problem with the drivers?
    In gDEBug it also says I have compability profile for OpenGL 3.3, but when I query the GL_VERSION, it says Core, as I requested. Very weird.
    I use a HD4890 with the latest ATI Drivers.
    Thanks for any help, I really can't solve it.

  2. #2

    Re: Unexplainable Error in gDEBug

    No one able to help?
    Did I forget any Information?

  3. #3
    Senior Member OpenGL Guru
    Join Date
    Oct 2004

    Re: Unexplainable Error in gDEBug

    Well, I'd double check gDEBugger. Everytime you create a shader, print the handle. Also print when this glGetShader call is being done and the handle you're passing. Make sure one of the handles created is 1, and that it was in fact created before the glGetShader call.

    Failing that, it's possible there's a bug in gDEBugger. I've found a number over the years and got the Graphic Remedy guys to fix them. They were very responsive.

  4. #4

    Re: Unexplainable Error in gDEBug

    Hm, well I guess I am gonna file it to Remedy then.
    I have debugged my application from top to bottom and I really can say that there is no obvious error in my code.
    Also, as said, glGetError does not return any faults, only GL_NO_ERROR.
    I was just getting unsure about it .

  5. #5
    Senior Member OpenGL Guru
    Join Date
    Oct 2004

    Re: Unexplainable Error in gDEBug

    Well, you could post a snippet here. That said, I do this glGetShaderiv call regularly and never have had any problems with it in gDEBugger:

    Code :
      glGetShaderiv( shader, GL_COMPILE_STATUS, &amp;res );

Similar Threads

  1. Shader Compile Error: ERROR: 0:1: '' : syntax error #version
    By Blakeasd in forum OpenGL: Basic Coding
    Replies: 12
    Last Post: 07-25-2013, 07:35 PM
  2. Unexplainable errors in image
    By Jonathan Berry in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 11-04-2010, 07:18 PM
  3. ERROR: 0:17:'f' : syntax error parse error
    By hopeless in forum OpenGL: GLSL
    Replies: 1
    Last Post: 08-23-2010, 01:05 PM
  4. Replies: 1
    Last Post: 09-24-2007, 04:02 AM
  5. Replies: 3
    Last Post: 02-07-2003, 05:06 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
Proudly hosted by Digital Ocean