File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import os
22from OpenGL import GL
3- from OpenGL .GL .EXT . texture_filter_anisotropic import *
3+ from OpenGL .GL .EXT import texture_filter_anisotropic as tfa
44from 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 """
You can’t perform that action at this time.
0 commit comments