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






