-void operator<<(LexicalConverter &conv, FramebufferStatus status)
-{
- switch(status)
- {
- case FRAMEBUFFER_INCOMPLETE_ATTACHMENT:
- conv.result("incomplete attachment");
- break;
- case FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:
- conv.result("missing attachment");
- break;
- case FRAMEBUFFER_INCOMPLETE_DIMENSIONS:
- conv.result("mismatched attachment dimensions");
- break;
- case FRAMEBUFFER_INCOMPLETE_FORMATS:
- conv.result("mismatched attachment formats");
- break;
- case FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER:
- conv.result("missing draw buffer attachment");
- break;
- 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;
- default:
- conv.result(lexical_cast<string, unsigned>(status, "%#x"));
- break;
- }
-}
-
-framebuffer_incomplete::framebuffer_incomplete(FramebufferStatus status):
- runtime_error(lexical_cast<string>(status))