[Bug 28966] [r300g] Dynamic branching 3 demo does not run

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Aug 18 11:56:54 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=28966

--- Comment #2 from Sven Arvidsson <sa at whiz.se> 2010-08-18 11:56:54 PDT ---
It seems to have regressed after the glsl2 merge it fails with "0:4(2):
preprocessor error: Invalid tokens after #" for both shaders.


/* Shader 2 source, checksum 0 */
#version 120
#define saturate(x) clamp(x,0.0,1.0)
#define lerp mix
#line 2
attribute vec2 textureCoord;
attribute vec3 tangent;
attribute vec3 binormal;
attribute vec3 normal;

uniform vec3 camPos;

varying vec2 texCoord;
varying vec3 vVec;

void main(){
        gl_Position = ftransform();

#ifdef MULTIPASS
        texCoord = textureCoord;

        vec3 viewVec = camPos - gl_Vertex.xyz;
        vVec.x = dot(viewVec, tangent);
        vVec.y = dot(viewVec, binormal);
        vVec.z = dot(viewVec, normal);
#endif
}



/* Compile status: fail */
/* Log Info: */
0:4(2): preprocessor error: Invalid tokens after #

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the dri-devel mailing list