Skip to content

Commit

Permalink
Merge pull request #127 from rreno/master
Browse files Browse the repository at this point in the history
Fix shader compilation error messages
  • Loading branch information
rougier committed Dec 9, 2017
2 parents 6f2f732 + b525beb commit f06ee06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions glumpy/gloo/shader.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def __init__(self, code=None, version="120"):
@property
def code(self):
code = super(VertexShader, self).code
code = "#define _GLUMPY__VERTEX_SHADER__\n" + code
code = "#define _GLUMPY_VERTEX_SHADER_\n" + code
return code


Expand All @@ -370,7 +370,7 @@ def __init__(self, code=None, version="120"):
@property
def code(self):
code = super(FragmentShader, self).code
code = "#define _GLUMPY__FRAGMENT_SHADER__\n" + code
code = "#define _GLUMPY_FRAGMENT_SHADER_\n" + code
return code


Expand Down

0 comments on commit f06ee06

Please sign in to comment.