]> git.tdb.fi Git - libs/gl.git/commitdiff
Use make_tex's wrap parameter in makefont.py
authorMikko Rasa <tdb@tdb.fi>
Mon, 21 Apr 2014 07:40:17 +0000 (10:40 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 21 Apr 2014 07:40:17 +0000 (10:40 +0300)
scripts/makefont.py

index 11d83794205cebad76b5526e088aa16d0d022df5..8cc9b17c6e49de535f9b769c6e141d395e9ac8a0 100755 (executable)
@@ -37,8 +37,7 @@ def make_font(fn, size):
                raise Exception("Could not execute ttf2png")
 
        result = "texture\n{\n"
-       result += "wrap CLAMP_TO_EDGE;\n"
-       result += maketex.make_tex("makefont-tmp.png")
+       result += maketex.make_tex("makefont-tmp.png", wrap="CLAMP_TO_EDGE")
        result += "};\n"
        result += convert_def("makefont-tmp.def")