New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VertexColor3D shader compile errors #27

Closed
miguelmartin75 opened this Issue Nov 19, 2013 · 2 comments

Comments

Projects
None yet
2 participants
@miguelmartin75
Contributor

miguelmartin75 commented Nov 19, 2013

Trying to use the code from the triangle example to ensure I have everything ready to go, and the following error message occurred during run-time.

Shader: vertex shader failed to compile with the following message:
ERROR: 2:42: '0' : syntax error syntax error
ERROR: 2:43: '1' : syntax error syntax error

Here are is the OpenGL context I used that made this error occur:

Vender: Intel Inc.
Renderer: Intel HD Graphics 3000 OpenGL Engine
Version: 3.3 INTEL-8.18.27

I'm on OS X 10.9, MacBookPro8,1, using SDL 2.

@mosra

This comment has been minimized.

Show comment
Hide comment
@mosra

mosra Nov 19, 2013

Owner

It seems that Apple's GLSL compiler doesn't support ARB_explicit_attrib_location on GLSL 1.40, even though the support is advertised. I enabled compilation for GLSL 1.50 in 81f02a2, please test. If that works, I will do a proper fix for the compilation error.

Owner

mosra commented Nov 19, 2013

It seems that Apple's GLSL compiler doesn't support ARB_explicit_attrib_location on GLSL 1.40, even though the support is advertised. I enabled compilation for GLSL 1.50 in 81f02a2, please test. If that works, I will do a proper fix for the compilation error.

@miguelmartin75

This comment has been minimized.

Show comment
Hide comment
@miguelmartin75

miguelmartin75 Nov 30, 2013

Contributor

Works perfect, thanks.

screen shot 2013-11-30 at 3 43 32 pm

Contributor

miguelmartin75 commented Nov 30, 2013

Works perfect, thanks.

screen shot 2013-11-30 at 3 43 32 pm

mosra added a commit that referenced this issue Dec 2, 2013

Bumped minimal version of exts related to layout() GLSL qualifier to …
…1.50.

Related to issue #27 -- layout() qualifier causes compiler errors on
GLSL 1.40 (GL 3.1) on Mac OS X even that the extensions are marked as
supported. Bumping the minimal required version disables the extensions
on this versions, which should avoid the issue.

It is not proper fix at all, but most of the GL3 implementations are
now at least GL 3.2, so it shouldn't be too much of an issue. The only
exception is Mesa (GL 2.1/3.1 on most of the machines), but we need
to maintain GL 2.1 compatibility for it anyway.

@mosra mosra added this to the 2014.01 milestone Feb 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment