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 q213Ah3u016006 for ; Thu, 1 Mar 2012 04:10:43 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlQHADDoTk+FBoIF/2dsb2JhbABEgwGxfIF6AQEEAScTBgMBNQEBAwsLGC5XBogXBAGmToQwjl8BBo0tAggCCgEGCwIGBwkFEQEDAwMChQqDO2OIUYxyhV+NIYFFBw X-IronPort-AV: E=Sophos;i="4.73,507,1325458800"; d="scan'208";a="146830231" Received: from rabbit.math.nagoya-u.ac.jp (HELO mailhost.math.nagoya-u.ac.jp) ([133.6.130.5]) by mail1-smtp-roc.national.inria.fr with ESMTP; 01 Mar 2012 04:10:20 +0100 Received: from mailhost.math.nagoya-u.ac.jp (localhost [127.0.0.1]) by mailhost.math.nagoya-u.ac.jp (Postfix) with ESMTP id 24F2A6241; Thu, 1 Mar 2012 12:10:17 +0900 (JST) Received: from mailhost.math.nagoya-u.ac.jp (camel-172.math.nagoya-u.ac.jp [172.16.254.4]) by mailhost.math.nagoya-u.ac.jp (Postfix) with ESMTP id D69843998; Thu, 1 Mar 2012 12:10:16 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=math.nagoya-u.ac.jp; h= subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=alpha; bh=ilDHbZFmI6kVf3MXurMtUIMFeGs=; b=fz8GiuJAeezVzNQOtDv+HaSgtu56 j1EE60uXrm/XfMtq4TP7JpFlDC+oU787l+/NVBGASvwQc5Mul4bnBRC0tE1hXO79 +YO5hU+gVSfIoCuqTNmpw+P8CtBiRuXRmQYDQBGxnSLSnBZbvf8e0oZWF3RzbHQj kWIrmRJ1ypAewV0= DomainKey-Signature: a=rsa-sha1; h=Received:Subject:Mime-Version:Content-Type:From:In-Reply-To:Date:Cc:Content-Transfer-Encoding:Message-Id:References:To:X-Mailer; b=jwWSbRhCp/iIar4zCKWwDFm2tqAwghl6mbVSPjGfDY9HMvyOdMPhdclj3b/ffMfr9gbOAy/7YXTdUJaCx7cHhg+fMf9snK7DwvKMB0cvognHymV93NyxpelhPvo8bovk/AbzcMOPBNVD7uiTX2p3It0x6umvSwM5Ow5TSsBvy5I=; c=nofws; d=math.nagoya-u.ac.jp; q=dns; s=alpha Received: from [10.10.53.184] (O-TK-MSC52000001.w-lan.jp [143.90.238.110]) by mailhost.math.nagoya-u.ac.jp (Postfix) with ESMTPSA id A4825255D; Thu, 1 Mar 2012 12:10:13 +0900 (JST) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Jacques Garrigue In-Reply-To: Date: Thu, 1 Mar 2012 12:10:05 +0900 Cc: OCaML List Mailing Message-Id: References: <4F4E8F85.7030708@laposte.net> To: Vu Ngoc San X-Mailer: Apple Mail (2.1084) Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id q213Ah3u016006 Subject: Re: [Caml-list] rgba/bgra in LablGL On 2012/03/01, at 6:07, malc wrote: > 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. LablGL already supports numerous extensions (which are mostly standard), so this is no concern. Please just send me your patch, and I'll include it. I should make a new release soon... Jacques Garrigue