Skip to main content
GameDev.net gamedev.net
🔒 Locked

Program link error with Tessellation Control & Evalution Shaders

Started by mrmurder Mar 12, 2012 at 4:44 PM 0 replies 1.6k views
Original Post
mrmurder
mrmurder
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
mrmurder
mrmurder
Well it seems that even that the tessellation shaders compiled correctly they had problems.

I was using in/out variables to pass data until the Evaluation Shader. Changed it to use gl_in and gl_out and now seems to be fine

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.