mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 09:25:38 +00:00
gpu/internal/driver: rename TextureFormatSRGB to TextureFormatSRGBA
The format implies an alpha channel; name it accordingly. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -704,7 +704,7 @@ func (b *Backend) NewTexture(format driver.TextureFormat, width, height int, min
|
||||
switch format {
|
||||
case driver.TextureFormatFloat:
|
||||
tex.triple = b.floatTriple
|
||||
case driver.TextureFormatSRGB:
|
||||
case driver.TextureFormatSRGBA:
|
||||
tex.triple = b.srgbaTriple
|
||||
case driver.TextureFormatRGBA8:
|
||||
tex.triple = textureTriple{gl.RGBA8, gl.RGBA, gl.UNSIGNED_BYTE}
|
||||
|
||||
Reference in New Issue
Block a user