From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q1TL7Pf2004735 for ; Wed, 29 Feb 2012 22:07:25 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsoLAPSSTk9N6B+ka2dsb2JhbABEgwGtW4MlDQsJBz2BegEBBAEnEz8FCws/B0YRBhOIBAm5ao4DAQMDAQIChQUFAwM0g2QEiEmFIo0zjRc X-IronPort-AV: E=Sophos;i="4.73,505,1325458800"; d="scan'208";a="146784746" Received: from fe01x03-cgp.akado.ru (HELO akado.ru) ([77.232.31.164]) by mail1-smtp-roc.national.inria.fr with ESMTP; 29 Feb 2012 22:07:24 +0100 Received: from [10.0.66.9] ([10.0.66.9] verified) by fe01-cgp.akado.ru (CommuniGate Pro SMTP 5.2.13) with ESMTPS id 327169420; Thu, 01 Mar 2012 01:07:24 +0400 Date: Thu, 1 Mar 2012 01:07:23 +0400 (MSK) From: malc X-X-Sender: malc@linmac To: Vu Ngoc San cc: caml-list@inria.fr In-Reply-To: <4F4E8F85.7030708@laposte.net> Message-ID: References: <4F4E8F85.7030708@laposte.net> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [Caml-list] rgba/bgra in LablGL On Wed, 29 Feb 2012, Vu Ngoc San wrote: > Hi > > My app uses LablGL (with ocamlSDL), in linux. > > when I ported it to mac OS, I noticed that when loading images and displaying > them as textures, the Red and Blue bytes were swapped. > > The OpenGL doc says that one can specify RGBA or BGRA when loading textures. > However LablGL only has `rgba. > > Hence I patched lablGL to add the `bgra <--> GL_BGRA tag, and it works as > expected. > > Can this be included in the official lablGL ? Or is there a reason not to ? > Well, one reason might be that GL_BGRA is an extension (GL_EXT_bgra), in practice there's no harm in adding it. -- mailto:av1474@comtv.ru