summaryrefslogtreecommitdiff
path: root/txtgameengine/twod/textures.py
diff options
context:
space:
mode:
authorrom <romangraef@gmail.com>2021-04-24 02:43:02 +0200
committerrom <romangraef@gmail.com>2021-04-24 02:43:02 +0200
commit16816aa5187b1c439da71f4badfbe8afdb5ec435 (patch)
treeff4466c72fcc079deefe77609989f4be7e3f72a6 /txtgameengine/twod/textures.py
parenta3998a8e8b507cf2915e81ab6fbb05efef29eb65 (diff)
downloadtxtgameengine-16816aa5187b1c439da71f4badfbe8afdb5ec435.tar.gz
txtgameengine-16816aa5187b1c439da71f4badfbe8afdb5ec435.tar.bz2
txtgameengine-16816aa5187b1c439da71f4badfbe8afdb5ec435.zip
pushing stuff around
Diffstat (limited to 'txtgameengine/twod/textures.py')
-rw-r--r--txtgameengine/twod/textures.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/txtgameengine/twod/textures.py b/txtgameengine/twod/textures.py
index 378227d..295af27 100644
--- a/txtgameengine/twod/textures.py
+++ b/txtgameengine/twod/textures.py
@@ -17,7 +17,7 @@ class Texture:
self._bind_to_gl()
def _bind_to_gl(self):
- image = Image.open(os.path.join(TEXTURE_FOLDER, self.path))
+ image = Image.open(self.path)
self.width, self.height = image.size
imagedata = np.array(list(image.getdata()), np.uint8)
self.gl_texid = self.app.render.setup_texture(self.width, self.height, imagedata)