haskell-opengl / OpenGL

Haskell bindings to OpenGL
http://www.haskell.org/haskellwiki/OpenGL
BSD 3-Clause "New" or "Revised" License
147 stars 26 forks source link

Switch generateMipmap to the new OpenGL 3.0 functionality #46

Closed Mokosha closed 10 years ago

Mokosha commented 10 years ago

HOpenGL's generateMipmap function was bound to the texture environment state variable introduced in OpenGL 1.4 and subsequently deprecated in OpenGL 3.0. It is removed altogether in OpenGL 3.1 and may cause confusion with glGenerateMipmap. This new function was introduced to allow automatic mipmap generation.

See http://www.opengl.org/wiki/Common_Mistakes#Automatic_mipmap_generation