X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fframeformat.cpp;h=f023aba799a59d19cde92ae5e09f7f4fdb9f603d;hp=30d7a47f36500d43172e8fece217e4ebb608c1ed;hb=9904aa3d09458098541fdce0114785d6bce1777f;hpb=05ca6353a7e48bfc145a2631bf289a81d333569a diff --git a/source/core/frameformat.cpp b/source/core/frameformat.cpp index 30d7a47f..f023aba7 100644 --- a/source/core/frameformat.cpp +++ b/source/core/frameformat.cpp @@ -89,7 +89,7 @@ FrameAttachment make_typed_attachment(FrameAttachment fa, PixelFormat pf) } DataType type = get_component_type(pf); - return static_cast((fa&0xFC00) | (is_float(type)*0x80) | get_type_size(type)<<4 | get_component_count(comp)); + return static_cast((fa&0xFC00) | (is_float(type)*0x100) | get_type_size(type)<<4 | get_component_count(comp)); } FrameAttachment make_indexed_attachment(FrameAttachment fa, unsigned i) @@ -115,7 +115,7 @@ PixelFormat get_attachment_pixelformat(UInt16 fa) comp = static_cast(fa&7); DataType type; - if(fa&0x80) + if(fa&0x100) type = static_cast((fa&0x70)>>4 | 0x300); else type = static_cast((fa&0x70)>>4);