Parser: Redeclaration of gl_CullDistance is disallowed mistakenly.
This commit is contained in:
parent
9af54c3337
commit
3d9165fde4
4 changed files with 59 additions and 6 deletions
|
|
@ -392,6 +392,8 @@ void TIntermediate::finalCheck(TInfoSink& infoSink)
|
|||
|
||||
if (inIoAccessed("gl_ClipDistance") && inIoAccessed("gl_ClipVertex"))
|
||||
error(infoSink, "Can only use one of gl_ClipDistance or gl_ClipVertex (gl_ClipDistance is preferred)");
|
||||
if (inIoAccessed("gl_CullDistance") && inIoAccessed("gl_ClipVertex"))
|
||||
error(infoSink, "Can only use one of gl_CullDistance or gl_ClipVertex (gl_ClipDistance is preferred)");
|
||||
|
||||
if (userOutputUsed() && (inIoAccessed("gl_FragColor") || inIoAccessed("gl_FragData")))
|
||||
error(infoSink, "Cannot use gl_FragColor or gl_FragData when using user-defined outputs");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue