Jump to content

  • Log In with Google      Sign In   
  • Create Account

14 years ago on June 15th Gamedev.net was first launched! We want to thank all of you for being part of our community and hope the best years are ahead of us. Happy birthday Gamedev.net!

#Actualmrmurder

Posted 12 March 2012 - 10:46 AM

Hello there,

I'm having a weird problem in my application.

My programs link just fine when using only vertex and fragment shaders, but once i add the Control and Evaluation Shaders in i get a unknown error when Linking.

Im using GLEW and creating a Forward Compatible Context with GL 4.1

This is the info i get from GL

OpenGL Version: 4.1.10428 Core Profile Forward-Compatible Context
GLSL Version : 4.10
GL Renderer : AMD Radeon HD 6750M

Vertex shader was successfully compiled to run on hardware.
Tessellation control shader was successfully compiled to run on hardware.
Tessellation evaluation shader was successfully compiled to run on hardware.
Fragment shader was successfully compiled to run on hardware.

ERROR:
First-chance exception at 0x69d7d918 in GL32Sample.exe: 0xC0000005: Access violation reading location 0x202c5d30.
Link - Vertex shader(s) failed to link, fragment shader(s) failed to link, tessellation control shader(s) failed to link, tessellation evaluation shader(s) failed to link.
unexpected error.
unexpected error.
unexpected error.
unexpected error.


The exception happens when calling this line ( after calling glLinkProgram(id) ):
glGetProgramiv(program_handle, GL_LINK_STATUS, &linkSuccess);


According to gl errors after calling glLinkProgram i get no errors, but once i make that call it gives me a first-chance exception.


Would anyone have any idea on why this is happening?

Thanks in advance

#1mrmurder

Posted 12 March 2012 - 10:44 AM

Hello there,

I'm having a weird problem in my application.

My programs link just fine when using only vertex and fragment shaders, but once i add the Control and Evaluation Shaders in i get a unknown error when Linking.

Im using GLEW and creating a Forward Compatible Context with GL 4.1

This is the info i get from GL

OpenGL Version: 4.1.10428 Core Profile Forward-Compatible Context
GLSL Version : 4.10
GL Renderer : AMD Radeon HD 6750M

Vertex shader was successfully compiled to run on hardware.
Tessellation control shader was successfully compiled to run on hardware.
Tessellation evaluation shader was successfully compiled to run on hardware.
Fragment shader was successfully compiled to run on hardware.

ERROR:
First-chance exception at 0x69d7d918 in GL32Sample.exe: 0xC0000005: Access violation reading location 0x202c5d30.
Link - Vertex shader(s) failed to link, fragment shader(s) failed to link, tessellation control shader(s) failed to link, tessellation evaluation shader(s) failed to link.
unexpected error.
unexpected error.
unexpected error.
unexpected error.


The exception happens when calling this line:
glGetProgramiv(program_handle, GL_LINK_STATUS, &linkSuccess);

Would anyone have any idea on why this is happening?

Thanks in advance

PARTNERS