Hello Sebastian,

You are right. I have other errors in the shader when such warnings happened. After I correct them, it works normal!

Thank you very much for the explanation!

Shuiying

On 01/18/2012 08:04 AM, Sebastian Messerschmidt wrote:
Hello shuiying,

either your card doesn't support glsl version 1.40 or you might have some other error in the shader. GLSL comes in different versions that are (AFAIK) defined by the GPU Architecture/Driver and Base OpenGL version. I had such warning sometimes if there was another problem in the shader, so maybe post the entire shader here or on opengl.org.

cheers
Sebastian

Hello,

my shader compile stage throws out such warnings:

0(8) : warning C7532: global type sampler2DRect requires "#version 140" or later 0(8) : warning C0000: ... or #extension GL_ARB_texture_rectangle : enable

and Then I add

#version 140
#extension GL_ARB_texture_rectangle : enable

at the very head of the shader file, but the warnings remain.

So how can I check whether my programm is able to use

            #version 140
            #extension GL_ARB_texture_rectangle : enable
?

Thank you very much in advance.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to