From: Mikko Rasa Date: Tue, 5 Dec 2017 11:36:50 +0000 (+0200) Subject: Additional framebuffer incompleteness errors X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=0e130c02d5e89397ac4963676534e0005359c61e;p=libs%2Fgl.git Additional framebuffer incompleteness errors --- diff --git a/source/framebuffer.cpp b/source/framebuffer.cpp index 237f417a..cf478ce2 100644 --- a/source/framebuffer.cpp +++ b/source/framebuffer.cpp @@ -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; diff --git a/source/framebuffer.h b/source/framebuffer.h index 1dd8c96f..92cb285b 100644 --- a/source/framebuffer.h +++ b/source/framebuffer.h @@ -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 };