flyx / OpenGLAda

Thick Ada binding for OpenGL and GLFW
flyx.github.io/OpenGLAda/
MIT License
95 stars 13 forks source link

Load_Empty_Texture not recognising Depth_Component #135

Closed rogermc2 closed 5 years ago

rogermc2 commented 5 years ago

Texture_2D.Load_Empty_Texture no longer seems to recognise Internal_Format => GL.Pixels.Depth_Component. Following code fails:

        Texture_2D.Bind (aShadow_Map.Texture);
        Texture_2D.Load_Empty_Texture (Level           => 0,
                                       Internal_Format => GL.Pixels.Depth_Component,
                                       Width           => Window_Width,
                                       Height          => Window_Height);

Error message: raised GL.ERRORS.INVALID_OPERATION_ERROR : gl raise_exception_on_opengl_error.adb:10. Internal_Format => GL.Pixels.Red is accepted without error.

flyx commented 5 years ago

Just a note: I am very sorry that I cannot allocate more time for maintaining OpenGLAda. I am aware of your issues and will try handle them when I find time.

rogermc2 commented 5 years ago

Appreciated. Whenever you get time is fine. Thanks.