Coming soon - Get a detailed view of why an account is flagged as spam!
view details

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.

5
GLSL 1.30 to 1.50
Post Body

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.

Author
Account Strength
100%
Account Age
14 years
Verified Email
Yes
Verified Flair
No
Total Karma
141,685
Link Karma
2,184
Comment Karma
138,153
Profile updated: 2 days ago
Posts updated: 6 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
10 years ago