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:
+1
-1
@@ -280,7 +280,7 @@ func (g *compute) Frame() error {
|
||||
Y: (viewport.Y + tileHeightPx - 1) / tileHeightPx,
|
||||
}
|
||||
|
||||
defFBO := g.ctx.BeginFrame(viewport)
|
||||
defFBO := g.ctx.BeginFrame(g.drawOps.clear, viewport)
|
||||
defer g.ctx.EndFrame()
|
||||
|
||||
if g.drawOps.profile && g.timers.t == nil && g.ctx.Caps().Features.Has(driver.FeatureTimers) {
|
||||
|
||||
Reference in New Issue
Block a user