You are not logged in.

#1 2015-09-01 10:05:39

Ploppz
Member
Registered: 2013-09-14
Posts: 313

Intel HD 4000: No support for OpenGL/GLSL 3.30?

Hi.
I need to run a template in C++/OpenGL, for a task for a computer graphics course. The course uses GLSL 3.30 (#version 330 core). I'm on my laptop which uses Intel HD 4000.

However, when I compile and run their code, I get this error just after the compilation of both vertex and fragment shaders:

0:2(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES

Just in case it is helpful, shaders are here.
I tried to use #version 130 instead, but I got an error on line 21 of that paste.

On Wikipedia it seems like OpenGL 3.3 should be supported.

Thanks in advance.

Offline

#2 2015-09-01 11:26:07

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,164

Re: Intel HD 4000: No support for OpenGL/GLSL 3.30?

please post glxinfo output.
(it's in mesa-demos package)

Last edited by Lone_Wolf (2015-09-01 11:26:35)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2015-09-01 11:58:01

Ploppz
Member
Registered: 2013-09-14
Posts: 313

Re: Intel HD 4000: No support for OpenGL/GLSL 3.30?

Offline

#4 2015-09-01 12:23:11

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,164

Re: Intel HD 4000: No support for OpenGL/GLSL 3.30?

Your card/driver do support OpenGL 3.3 & GLSL 3.30 , the problem may be with the way the course code checks OpenGL support.

2 possibilities come to mind :
- Mesa only has OpenGL 3.3 support since 10.6.0 , released on jun 14 2015.
The course code may need changes to work with mesa 10.6.x and above ( 11.0 will be released soon).

- The course code needs 1 or more specific extensions that are not available from the intel driver.

You should check with the teachers / creators of this computer graphics course.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2015-09-02 20:33:48

jf25
Member
From: Germany
Registered: 2015-07-11
Posts: 35

Re: Intel HD 4000: No support for OpenGL/GLSL 3.30?

You only get support for GLSL 3.30 if you work with a forward-compatible (core) OpenGL context with version 3.3. You have to request that explicitely on context creation.

Offline

#6 2016-01-27 14:40:06

Graham42
Member
Registered: 2015-12-19
Posts: 2

Re: Intel HD 4000: No support for OpenGL/GLSL 3.30?

Did you ever find a solution for this? I am in the exact same situation. Class assignment requires #version 330 for shaders and laptop is runnning Intel HD 4000

Offline

#7 2016-01-27 16:09:11

themax
Member
Registered: 2013-05-14
Posts: 32

Re: Intel HD 4000: No support for OpenGL/GLSL 3.30?

Have you tried setting the environment variable:

MESA_GLSL_VERSION_OVERRIDE = 330

Then it should no longer complain. But it's not sure if the code will execute properly.

Offline

#8 2016-01-27 16:12:23

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: Intel HD 4000: No support for OpenGL/GLSL 3.30?

The only correct solution is what js25 said: You need to request a 3.3 core context at context creation time. Overrides are definitely not the way to go.

Offline

#9 2016-01-27 19:24:57

Graham42
Member
Registered: 2015-12-19
Posts: 2

Re: Intel HD 4000: No support for OpenGL/GLSL 3.30?

Thanks for the replies.
Have to use glut for this assignment and it doesn't seem to be possible to tell glut to get a 3.3 context.

Got the code working by changing to

#version 300 es

in the shaders and then adding precisions for vec4 in the shaders

Offline

#10 2016-01-27 20:24:41

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: Intel HD 4000: No support for OpenGL/GLSL 3.30?

Yeah, glut is outdated, I don't think it's aware that something like core contexts even exists. Nice workaround though, to use GLES instead of desktop GL smile

Offline

Board footer

Powered by FluxBB