SimonDanisch / GLPlot.jl

Plotting for Julia with OpenGL
Other
74 stars 8 forks source link

Better error message for outdated GLSL #7

Closed Keno closed 10 years ago

Keno commented 10 years ago

Basically a newly installed copy of Windows on my machine fails with the following. It is of course possible that some driver is not installed (wouldn't be surprise), but at least a better error message would be good.

#version 120

in vec3 vertex;
out vec4 vertpos;

uniform mat4 projectionview;

void main(){
   vertpos      = projectionview * vec4(vertex, 1.0);
   gl_Position  = vertpos;
}
ERROR: C:\Users\Keno\.julia\v0.3/GLPlot/src/shader/simple.vert
0:4(15): error: `in' qualifier in declaration of `vertex' only valid for functio
n parameters in GLSL 1.20.
0:5(17): error: `out' qualifier in declaration of `vertpos' only valid for funct
ion parameters in GLSL 1.20.
SimonDanisch commented 10 years ago

That means you have GLSL version 1.20, which I might be able to support, but I just didn't get around to parse things right yet... You're right, I should simply throw an error.

Keno commented 10 years ago

This is what I get when Windows is virtualized. I can reboot into windows later and install the latest opengl nvidia driver if that helps.

SimonDanisch commented 10 years ago

I'm pretty sure, that windows in the virtual box always has very low OpenGL versions, regardless of your video card. But you never know, maybe they have improved OpenGL support. If your graphic card is not too old, it should definitely help!

SimonDanisch commented 10 years ago

Its a pitty, as this destroys the possibility of using virtualized machines as a test environment :(

Keno commented 10 years ago

VMWare's graphics support isn't all that bad I think. Technically it should Support OpenGL 2.1, but as I said I might not have the drivers set up.

SimonDanisch commented 10 years ago

Well, my code needs at least OpenGL 3.0 with GLSL 1.30 at the moment....

Keno commented 10 years ago

Got it! Will reboot to windows later then and try it out.