Error prior to using GLSL Program Object : ...

Problems building or running the engine, queries about how to use features etc.
Post Reply
hall
Halfling
Posts: 41
Joined: Sat Dec 01, 2012 12:47 am

Error prior to using GLSL Program Object : ...

Post by hall »

Take a look below. I attach it say to a cube and it works. But my log gets spammed with "Error prior to using GLSL Program Object : invalid operationValidation successful." If it's referring to "validation" of the shaders, the log says " Vertex Program:DepthMapVS Fragment Program:DepthMapFS GLSL link result : Validation successful." What gives?

Thanks,

M

Material Declarataion

Code: Select all

material DepthMap {
    technique
    {
        pass
        {
            lighting off
            
            vertex_program_ref DepthMapVS
            {
            }
            
            fragment_program_ref DepthMapFS
            {
            }
        }
    }
}
Shader declarations:

Code: Select all

vertex_program DepthMapVS glsl
{
    source depthMap.vs
    
    default_params
    {
//        param_named_auto worldMat world_matrix
    }
}

fragment_program DepthMapFS glsl
{
    source depthMap.fs
    
    default_params
    {
//        param_named_auto camPos camera_position
    }
}
Simple white frag shader:

Code: Select all

void main() {
    gl_FragColor = vec4(1, 1, 1, 1);
}
Simple vertex shader

Code: Select all

void main() {
    gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
}
Post Reply