From 7abc600f73178a54de401b3b1dc363d24dedc32b Mon Sep 17 00:00:00 2001 From: Ashish Gaurav <agaurav77@yahoo.com> Date: Mon, 19 Nov 2018 18:24:08 -0500 Subject: [PATCH] update gitignore, revert vm pyglet fix --- .gitignore | 3 +++ env/simple_intersection/utilities.py | 11 ++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9a57116 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.pyc +*.py~ +__pycache__ diff --git a/env/simple_intersection/utilities.py b/env/simple_intersection/utilities.py index 9081f92..b8a20f6 100644 --- a/env/simple_intersection/utilities.py +++ b/env/simple_intersection/utilities.py @@ -201,9 +201,14 @@ def config_Pyglet(pyglet, win_x, win_y): """ pyglet.options['debug_gl'] = False - config = pyglet.gl.Config() - # This configuration doesn't work on some screens - # config = pyglet.gl.Config(sample_buffers=1, samples=4) + + # Use the no arguments version, if you don't have a GPU. Uncomment the + # line below then. + # config = pyglet.gl.Config() + + # Otherwise use the following line. + config = pyglet.gl.Config(sample_buffers=1, samples=4) + window = pyglet.window.Window(width=win_x, height=win_y, config=config) return window -- GitLab