]> git.tdb.fi Git - libs/gl.git/commitdiff
Additional framebuffer incompleteness errors
authorMikko Rasa <tdb@tdb.fi>
Tue, 5 Dec 2017 11:36:50 +0000 (13:36 +0200)
committerMikko Rasa <tdb@tdb.fi>
Tue, 5 Dec 2017 11:36:50 +0000 (13:36 +0200)
source/framebuffer.cpp
source/framebuffer.h

index 237f417a9b45db982ffe54e8a59e0bf9a8895e8f..cf478ce29b686d842ce2074078952633b2e47b02 100644 (file)
@@ -39,6 +39,15 @@ void operator<<(LexicalConverter &conv, FramebufferStatus status)
        case FRAMEBUFFER_INCOMPLETE_READ_BUFFER:
                conv.result("missing read buffer attachment");
                break;
+       case FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:
+               conv.result("mismatched attachment sample counts");
+               break;
+       case FRAMEBUFFER_INCOMPLETE_LAYER_COUNT:
+               conv.result("mismatched attachment layer counts");
+               break;
+       case FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS:
+               conv.result("mismatched attachment layering");
+               break;
        case FRAMEBUFFER_UNSUPPORTED:
                conv.result("unsupported");
                break;
index 1dd8c96f219f946b42568e4c34d052df5d8c6a53..92cb285bd842ae7a5f669fd28f47ecac88328820 100644 (file)
@@ -34,6 +34,9 @@ enum FramebufferStatus
        FRAMEBUFFER_INCOMPLETE_FORMATS            = GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT,
        FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER        = GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER,
        FRAMEBUFFER_INCOMPLETE_READ_BUFFER        = GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER,
+       FRAMEBUFFER_INCOMPLETE_MULTISAMPLE        = GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE,
+       FRAMEBUFFER_INCOMPLETE_LAYER_COUNT        = GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB,
+       FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS      = GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS,
        FRAMEBUFFER_UNSUPPORTED                   = GL_FRAMEBUFFER_UNSUPPORTED,
        FRAMEBUFFER_COMPLETE                      = GL_FRAMEBUFFER_COMPLETE
 };