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

Not possible to call glFramebufferTexture2D with GL_TEXTURE_CUBE_MAP_POSITIVE_X (or other cube map faces) #58

Open ocharles opened 9 years ago

ocharles commented 9 years ago

framebufferTexture2D is typed as:

framebufferTexture2D :: FramebufferTarget -> FramebufferObjectAttachment -> TextureTarget2D -> TextureObject -> Level -> IO ()

But TextureCubeMapPositiveX is a TextureTargetCubeMapFace. Perhaps the type just needs to be relaxed to:

framebufferTexture2D :: TwoDimensionalTextureTarget tt => FramebufferTarget -> FramebufferObjectAttachment -> tt -> TextureObject -> Level -> IO ()

?