}
DataType type = get_component_type(pf);
- return static_cast<FrameAttachment>((fa&0xFC00) | (is_float(type)*0x80) | get_type_size(type)<<4 | get_component_count(comp));
+ return static_cast<FrameAttachment>((fa&0xFC00) | (is_float(type)*0x100) | get_type_size(type)<<4 | get_component_count(comp));
}
FrameAttachment make_indexed_attachment(FrameAttachment fa, unsigned i)
comp = static_cast<PixelComponents>(fa&7);
DataType type;
- if(fa&0x80)
+ if(fa&0x100)
type = static_cast<DataType>((fa&0x70)>>4 | 0x300);
else
type = static_cast<DataType>((fa&0x70)>>4);