On Sunday, 4 December 2016 at 06:41:07 UTC, Payotz wrote:
So I've been trying to teach myself how to OpenGL, and there are errors whenever I try to compile my shaders.

Errors are : http://i.imgur.com/5hRaQL8.png

Why the screenshot? Simpler to respond to copy/pasted text.

The second line is a pretty strong hint:

"Version number not supported by GL2"

It seems you haven't created a GL30 context. Before loading your shader, print out the result of glGetString(GL_VERSION) to verify. Then make sure you create a GL3 context with whichever API you are using.


My shader code is as follows:
///
#version 130

attribute vec3 position;

`attribute` was deprecated in GLSL 1.3. Use `in` instead.


Reply via email to