--- FretsOnFire-src-1.3.110/src/Texture.py 2016-09-21 23:30:49.072858379 +0200 +++ FretsOnFire-src-1.3.110/src/Texture.py" 2016-09-22 00:47:04.472456222 +0200 @@ -286,7 +286,7 @@ def loadRaw(self, size, string, format, components): """Load a raw image from the given string. 'format' is a constant such as - GL_RGB or GL_RGBA that can be passed to gluBuild2DMipmaps. + GL_RGB or GL_RGBA that can be passed to glTexImage2D. """ self.pixelSize = size self.size = (1.0, 1.0) @@ -295,7 +295,8 @@ (w, h) = size Texture.bind(self) glPixelStorei(GL_UNPACK_ALIGNMENT, 1) - gluBuild2DMipmaps(self.glTarget, components, w, h, format, GL_UNSIGNED_BYTE, string) + glTexImage2D(self.glTarget, 0, components, w, h, 0, format, GL_UNSIGNED_BYTE, string) + glGenerateMipmap(self.glTarget) def loadSubRaw(self, size, position, string, format): Texture.bind(self)