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

Setting polygonMode should use FRONT_AND_BACK when possible #43

Closed svenpanne closed 11 years ago

svenpanne commented 11 years ago

Separate polygon modes are deprecated nowadays (see e.g. section D.2 of the OpenGL 4.3 spec), so polygonMode should handle this properly: When the given PolygonModes are equal, use FRONT_AND_BACK, otherwise separate FRONT and BACK calls. This way we can keep the signature of polygonMode and use non-deprecated functionality when possible.