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:
Elias Naur
2021-07-28 14:25:13 +02:00
parent 43c5082dab
commit b3a8c24334
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -484,7 +484,7 @@ func (r *renderer) texHandle(cache *resourceCache, data imageOpData) driver.Text
if tex.tex != nil {
return tex.tex
}
handle, err := r.ctx.NewTexture(driver.TextureFormatSRGB, data.src.Bounds().Dx(), data.src.Bounds().Dy(), driver.FilterLinear, driver.FilterLinear, driver.BufferBindingTexture)
handle, err := r.ctx.NewTexture(driver.TextureFormatSRGBA, data.src.Bounds().Dx(), data.src.Bounds().Dy(), driver.FilterLinear, driver.FilterLinear, driver.BufferBindingTexture)
if err != nil {
panic(err)
}