This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hey,
I (an OpenGL novice) am writing a small app to visualize meshes used for numerical computations. I developed this using GLSL 1.30 (on OpenGL 4.4, it turns out I was using), but it looks like I need to move to GLSL 1.50 (on OpenGL 3.2, using just the core profile) to help one of our Mac users out.
I thought this wouldn't be a big deal, I just switched out the #version 130
with #version 150
and declared the gl_FragColor
in the fragment shader (which was previously undeclared) as an out
. But now nothing is drawn, the frame contains only the background color (white).
My shaders:
Other code that might be of interest:
Have I inadvertently used a feature not available on OpenGL 3.2? I find that a bit hard to believe since I don't get any error messages, just blank space...
I regret that there are quite a few Qt-isms that might cloud the OpenGL layer behind it, but it should be clear enough I hope.
Also you will have problems compiling this if you try because you'll need GoTools, which you probably don't have.
Post Details
- Posted
- 10 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/opengl/comm...