rombust
03-04-2010, 07:42 PM
I am trying to introduce geometry shaders in ClanLib 2.2 SVN
I have added the extra clFunction’s to opengl.h , for example:
functions->ProgramParameteri = (CL_GLFunctions::ptr_glProgramParameteri) CL_OpenGL::get_proc_address("glProgramParameteriEXT");
And I have added cl_shadertype_geometry to CL_ShaderObject
I created "Examples/GeometryShader" to test it.
See "Sources/shader_color_geometry.cpp". This does all the geometry shader work.
If the line: "program_object.attach(geometry_shader);" is commented out, then the teapot is shown in solid white.
If that line is included, then nothing is shown. I expected the teapot to be shown (the geometry shader just emits a single triangle in the same position).
I would be very grateful if someone is up to the challenge in finding out what is wrong. It should be something very simple!
Note: I had to update my NVidia driver to enable the geometry extension (although it’s core in OpenGL 3.2)
I have added the extra clFunction’s to opengl.h , for example:
functions->ProgramParameteri = (CL_GLFunctions::ptr_glProgramParameteri) CL_OpenGL::get_proc_address("glProgramParameteriEXT");
And I have added cl_shadertype_geometry to CL_ShaderObject
I created "Examples/GeometryShader" to test it.
See "Sources/shader_color_geometry.cpp". This does all the geometry shader work.
If the line: "program_object.attach(geometry_shader);" is commented out, then the teapot is shown in solid white.
If that line is included, then nothing is shown. I expected the teapot to be shown (the geometry shader just emits a single triangle in the same position).
I would be very grateful if someone is up to the challenge in finding out what is wrong. It should be something very simple!
Note: I had to update my NVidia driver to enable the geometry extension (although it’s core in OpenGL 3.2)