File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -126,17 +126,16 @@ def bind_texture(texture):
126126
127127 glEnable (texture .image .target )
128128 glBindTexture (texture .image .target , texture .image .id )
129- gl .glTexParameterf (texture .image .target ,
130- gl .GL_TEXTURE_WRAP_S , gl .GL_CLAMP_TO_EDGE )
131- gl .glTexParameterf (texture .image .target ,
132- gl .GL_TEXTURE_WRAP_T , gl .GL_CLAMP_TO_EDGE )
129+ glTexParameterf (texture .image .target , GL_TEXTURE_WRAP_S , GL_CLAMP_TO_EDGE )
130+ glTexParameterf (texture .image .target , GL_TEXTURE_WRAP_T , GL_CLAMP_TO_EDGE )
133131
134132
135133def load_image (name ):
136134 """Load an image"""
137- image = pyglet .image .load (name ).texture
138- verify_dimensions (image )
139- return image
135+ image = pyglet .image .load (name )
136+ texture = image .get_texture ()
137+ verify_dimensions (texture )
138+ return texture
140139
141140
142141def verify_dimensions (image ):
You can’t perform that action at this time.
0 commit comments