[Mesa-dev] [Bug 28913] New: [GLSL] allowing two version statements
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Jul 5 01:39:28 PDT 2010
https://bugs.freedesktop.org/show_bug.cgi?id=28913
Summary: [GLSL] allowing two version statements
Product: Mesa
Version: git
Platform: All
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Mesa core
AssignedTo: mesa-dev at lists.freedesktop.org
ReportedBy: gordon.jin at intel.com
Both GLSL 1.10 and 1.20 specs say:
"The #version directive must occur in a shader before anything else, except for
comments and white space."
But glsl/tests/glslparsertest/shaders/CorrectVersion1.V110.frag fails with
below output:
Successfully compiled fragment shader
/GFX/Test/Piglit_ext/piglit/tests/glslparsertest/shaders/CorrectVersion1.V110.frag:
(no compiler output)
Output:
PIGLIT: {'result': 'fail' }
This piglit test case was changed as below with
http://cgit.freedesktop.org/piglit/commit/?id=5752c9a33a66e91544a6af2e926833183318357b
/* Only one version statement is allowed; two should raise an error. */
#version 110
#version 110
--
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