You are not logged in.

#1 2016-09-25 00:15:43

2Pug
Member
Registered: 2011-04-21
Posts: 10

Getting Mesa to compile GLSL 1.5 shaders

I'm trying to run the examples form the OpenSubdiv project but keep getting shader errors.

Error compiling GLSL shader: 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES

I was looking around and found some posts from people saying that you could set the gl version but no clear example or how to do this. I went to Mesa's site and found they have an environmental variable for these but got the same error when I tried setting them with 'env'. Is there some special way of setting these or do they need to be set at compile time? I'm not sure what to do to get this to work. I'm using the current Mesa 12.0.3.

Offline

#2 2016-09-25 00:22:57

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Getting Mesa to compile GLSL 1.5 shaders

Moving to Creating & Modifying Packages...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-09-25 15:40:34

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Getting Mesa to compile GLSL 1.5 shaders

This is likely a problem with the opensubdiv example code,not with mesa.

The "supported versions" match mesa 'compat profile' which is limited to OpenGL 3.0 .

For anything OpenGL 3.1 or higher , your program needs to get an OpenGL context with a mesa 'core profile' .


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


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB