Skip to content

Commit 400b588

Browse files
committed
Pep8
1 parent e252340 commit 400b588

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

demosys/opengl/texture.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22
from OpenGL import GL
3-
from OpenGL.GL.EXT.texture_filter_anisotropic import *
3+
from OpenGL.GL.EXT import texture_filter_anisotropic as tfa
44
from PIL import Image
55

66

@@ -111,9 +111,9 @@ def _build(self, data=None):
111111
GL.glGenerateMipmap(self.target)
112112

113113
if self.anisotropy > 0:
114-
max_ani = GL.glGetFloatv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT)
114+
max_ani = GL.glGetFloatv(tfa.GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT)
115115
self.anisotropy = min(max_ani, self.anisotropy)
116-
GL.glTexParameterf(self.target, GL_TEXTURE_MAX_ANISOTROPY_EXT, self.anisotropy)
116+
GL.glTexParameterf(self.target, tfa.GL_TEXTURE_MAX_ANISOTROPY_EXT, self.anisotropy)
117117

118118
def set_image(self, image):
119119
"""

0 commit comments

Comments
 (0)