[Mesa-dev] [Bug 32000] [glsl] Texture value get's corrupt as soon as it appears in if statement

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jun 9 11:24:21 PDT 2011


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

Ian Romanick <idr at freedesktop.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #1 from Ian Romanick <idr at freedesktop.org> 2011-06-09 11:24:21 PDT ---
The shader code incorrectly uses GLSL 1.30 'in' and 'out' for varyings.  In
GLSL 1.20 and earlier, you must use 'varying'.  Our compiler currently
generates the following error:

Vertex shader errors / warnings in file VertexShader.glsl:
0:3(21): error: `out' qualifier in declaration of `ShadowCoord' only valid for
function parameters in GLSL 1.20.

NVIDIA is very sloppy and lets all kinds of invalid code through.

Changing 'in' and 'out' to 'varying' makes this demo produce what I believe are
correct results on the current 7.10 branch (which will soon be the 7.10.3
release) and on master.  It seems unlikely that there will ever be another 7.9
release.

-- 
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 mesa-dev mailing list