The anti-aliasing is has little benefit but killed a card. It also makes text blurry. Added vsync back.

This commit is contained in:
Quantum 2013-12-24 17:16:53 -05:00
parent 55ee2ee3d2
commit 678938ab10
2 changed files with 1 additions and 9 deletions

View file

@ -21,7 +21,7 @@ def main():
if args:
game.TICKS_PER_SECOND = args.ticks
game.Applet(width=INITIAL_WIN_WIDTH, height=INITIAL_WIN_HEIGHT, caption=WIN_TITLE, resizable=True, vsync=0)
game.Applet(width=INITIAL_WIN_WIDTH, height=INITIAL_WIN_HEIGHT, caption=WIN_TITLE, resizable=True)
pyglet.app.run()

View file

@ -157,14 +157,6 @@ class Applet(pyglet.window.Window):
glClearColor(0, 0, 0, 1)
glClearDepth(1.0)
if not texture.badcard:
glEnable(GL_BLEND)
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)
glEnable(GL_LINE_SMOOTH)
glEnable(GL_POLYGON_SMOOTH)
glHint(GL_LINE_SMOOTH_HINT, GL_NICEST)
glHint(GL_POLYGON_SMOOTH_HINT, GL_NICEST)
glAlphaFunc(GL_GEQUAL, 0.2)
glDepthFunc(GL_LEQUAL)
glEnable(GL_DEPTH_TEST)