forked from joejulian/gio
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:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user