From: Gareth H. <ga...@va...> - 2001-02-01 11:02:22
|
Gareth Hughes wrote: > > Brian Paul wrote: > > > > Don't remove the original case. > > > > GL_BGR / GL_UNSIGNED_SHORT_5_6_5_REV is equivalent to GL_RGB / > > GL_UNSIGNED_SHORT_5_6_5. In both cases, the component packing > > in the GLushort is RRRRRGGGGGGBBBBB. > > > > So, the condition should be: > > > > if ((srcFormat == GL_RGB && srcType == GL_UNSIGNED_SHORT_5_6_5) || > > (srcFormat == GL_BGR && srcType == GL_UNSIGNED_SHORT_5_6_5_REV)) { > > Hmmm... I'm going to have to read the spec a little more closely. Given the > fact that it's 4:30am over here this is frying my brain ;-) Okay, found the relevant section and I get it now... -- Gareth |