mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 17:35:36 +00:00
gp/internal/opengl: support sRGB emulation for embedded content
Programs such as gio-example/glfw rely on Gio drawing blending with the framebuffer background. This change makes it so when sRGB emulation is active. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -174,7 +174,7 @@ func newDriver(t *testing.T) driver.Device {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
b.BeginFrame(image.Pt(1, 1))
|
||||
b.BeginFrame(true, image.Pt(1, 1))
|
||||
t.Cleanup(func() {
|
||||
b.EndFrame()
|
||||
ctx.ReleaseCurrent()
|
||||
|
||||
Reference in New Issue
Block a user