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
@@ -139,7 +139,7 @@ func setupFBO(t *testing.T, b driver.Device, size image.Point) driver.Framebuffe
func newFBO(t *testing.T, b driver.Device, size image.Point) driver.Framebuffer {
fboTex, err := b.NewTexture(
driver.TextureFormatSRGB,
driver.TextureFormatSRGBA,
size.X, size.Y,
driver.FilterNearest, driver.FilterNearest,
driver.BufferBindingFramebuffer,
+1 -1
View File
@@ -49,7 +49,7 @@ func NewWindow(width, height int) (*Window, error) {
}
dev.Viewport(0, 0, width, height)
fboTex, err := dev.NewTexture(
driver.TextureFormatSRGB,
driver.TextureFormatSRGBA,
width, height,
driver.FilterNearest, driver.FilterNearest,
driver.BufferBindingFramebuffer,