From: malc <av1474@comtv.ru>
To: Vu Ngoc San <san.vu-ngoc@laposte.net>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] rgba/bgra in LablGL
Date: Thu, 1 Mar 2012 01:07:23 +0400 (MSK) [thread overview]
Message-ID: <alpine.LNX.2.00.1203010105380.7081@linmac> (raw)
In-Reply-To: <4F4E8F85.7030708@laposte.net>
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
next prev parent reply other threads:[~2012-02-29 21:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-29 20:50 Vu Ngoc San
2012-02-29 21:07 ` malc [this message]
2012-03-01 3:10 ` Jacques Garrigue
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.2.00.1203010105380.7081@linmac \
--to=av1474@comtv.ru \
--cc=caml-list@inria.fr \
--cc=san.vu-ngoc@laposte.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox