#include "error.h"
#include "frameformat.h"
-#include "gl.h"
using namespace std;
}
else
{
- if(comp!=RED && comp!=RG && comp!=RGB && comp!=RGBA)
+ if(comp!=RED && comp!=RG && comp!=RGB && comp!=RGBA && comp!=BGR && comp!=BGRA)
+ throw invalid_argument("make_typed_attachment");
+ if(get_required_swizzle(comp))
throw invalid_argument("make_typed_attachment");
}