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 q1TKov8p004128 for ; Wed, 29 Feb 2012 21:50:57 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjMEAFaPTk/UGyoBkWdsb2JhbABEgwGvVgSBBSIBAQEBCQsLBxQDJIIoEUA9FhgDAgECAVgIAQGICZkroEiKH4MPAgIHBgQDBAMIBAoNEwEDAQIBAgKFBQUDA3qDHgSbHo0T X-IronPort-AV: E=Sophos;i="4.73,504,1325458800"; d="scan'208";a="146782201" Received: from smtp1-g21.free.fr ([212.27.42.1]) by mail1-smtp-roc.national.inria.fr with ESMTP; 29 Feb 2012 21:50:26 +0100 Received: from [192.168.0.14] (unknown [82.225.106.147]) by smtp1-g21.free.fr (Postfix) with ESMTP id 88FFB940048 for ; Wed, 29 Feb 2012 21:50:14 +0100 (CET) Message-ID: <4F4E8F85.7030708@laposte.net> Date: Wed, 29 Feb 2012 21:50:13 +0100 From: Vu Ngoc San User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: caml-list@inria.fr Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Caml-list] rgba/bgra in LablGL 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 ? San