Continue migration to openglraw

This commit is contained in:
2023-03-09 21:00:16 +00:00
parent 487a904584
commit 2388715d52
3 changed files with 17 additions and 26 deletions
+11
View File
@@ -0,0 +1,11 @@
module Framebuffer.Check where
import Data.Preload.Render
import Graphics.GL.Core45
checkFBO :: FBO -> IO ()
checkFBO fbo = do
fboStatus <- glCheckNamedFramebufferStatus (_unFBO fbo) GL_FRAMEBUFFER
case fboStatus of
36053 -> return () -- this should correspond to GL_COMPLETE or something
_ -> error $ "FBO id "++ show (_unFBO fbo) ++ ":" ++ show fboStatus