Results 1 to 2 of 2

Thread: glLinkProgram throws an INVALID_VALUE without errors.

  1. #1
    Newbie Newbie
    Join Date
    Oct 2013

    [SOLVED]glLinkProgram throws an INVALID_VALUE without errors.

    Hello everyone,
    i'm trying to understand why my code throws an INVALID_VALUE when trying to link a successful attached set of shaders to a program.
    I've checked the specifications and it seems that INVALID_VALUE is thrown only when the parameter specified is not a program created by OpenGL, but i'm quite sure it is.

    The odd thing is that with NVIDIA drivers v.310 the problem disappears.
    The code is the following:
    Code :
    	GLint linkStatus;
    	glGetProgramiv(m_programId, GL_LINK_STATUS, &linkStatus);
    	m_linked = (linkStatus == GL_TRUE);
    		GLint logLength;
    		glGetProgramiv(m_programId, GL_INFO_LOG_LENGTH, &logLength);
    		char* log = new char[logLength];
    		GLsizei length;
    		glGetProgramInfoLog(m_programId, logLength, &length, log);
    		m_linkLog = log;
    		delete[] log;
    		m_linkLog = "";
    	return m_linked;

    But glGetProgramiv(m_programId, GL_LINK_STATUS, &linkStatus); returns GL_TRUE, and if i check the INFO_LOG anyways it's always

    Any suggestions?


  2. #2
    Newbie Newbie
    Join Date
    Oct 2013
    Seems like compiling an empty GEOMETRY_SHADER and linking it to the program raises an INVALID_VALUE but the LINK_STATUS and INFO_LOG are empty.
    Should i report this to NVIDIA?

Similar Threads

  1. Replies: 0
    Last Post: 03-16-2015, 11:48 AM
  2. glVertexAttribPointer causes INVALID_VALUE error in OpenGL 4.0?
    By imported_JoshKlint in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 05-31-2013, 09:26 PM
  3. AMD glLinkProgram crash
    By imported_tonyo_au in forum OpenGL: Drivers
    Replies: 0
    Last Post: 02-10-2013, 10:00 PM
  4. glLinkProgram failing
    By jasonmallios in forum OpenGL ES
    Replies: 0
    Last Post: 01-03-2012, 08:26 PM
  5. glBindAttribLocation after glLinkProgram
    By kaerimasu in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 08-18-2010, 04:45 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