The default bug view has changed. See this FAQ.

Make sure we're using the right format for textures

NEW
Unassigned

Status

()

Core
Graphics
6 years ago
4 years ago

People

(Reporter: jrmuizel, Unassigned)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 years ago
The OS X gl guide recommends against using GL_ARGB textures. Perhaps we should follow their advice.
I don't think it really matters any more, not in a shader world?  But it's easy enough to switch -- we already have two sets of shaders, one for rgba and one for bgra (swapped).  So we could use BGRA (which is I assume what it suggests you use?) and just swap the shader type, if we're on OSX.
(Reporter)

Comment 2

6 years ago
I should've mentioned this earlier, but the reason I looked into this was because
glgConvertTo_32<GLGConverter_ABGR8_ARGB8, (GLGMemory)2> was showing up in profiles.
ah ha, so internally it wants BGRA.  Should be easy to do, we'll just need to carry around a we_are_in_opposite_land flag (which can be static true on OSX).
(Reporter)

Updated

5 years ago
Blocks: 789573
Duplicate of this bug: 619870
You need to log in before you can comment on or make changes to this bug.