Skip to content

Commit

Permalink
Discard initial outpu from cgc
Browse files Browse the repository at this point in the history
  • Loading branch information
felixpalmer committed May 24, 2016
1 parent a5d1522 commit e5b8b67
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions glsl-validate.py
Expand Up @@ -97,6 +97,11 @@ def shader_info(shader_file):

if ret_code == 0:
lines = p.stdout.readlines()
# Discard output at top, not useful
while len(lines) > 0:
if "#program main" in lines.pop(0):
break

assembly = "".join(lines[:-1])
if args.assembly:
print assembly
Expand Down

0 comments on commit e5b8b67

Please sign in to comment.