-#include "deviceinfo.h"
#include "error.h"
#include "frameformat.h"
-#include "gl.h"
using namespace std;
namespace Msp {
namespace GL {
-FrameFormat::FrameFormat():
- count(0),
- samples(1)
-{ }
-
FrameFormat::FrameFormat(FrameAttachment fa):
count(1),
samples(1)
}
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");
}