From 0e130c02d5e89397ac4963676534e0005359c61e Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 5 Dec 2017 13:36:50 +0200 Subject: [PATCH] Additional framebuffer incompleteness errors --- source/framebuffer.cpp | 9 +++++++++ source/framebuffer.h | 3 +++ 2 files changed, 12 insertions(+) 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 }; -- 2.45.2