mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 09:25:38 +00:00
gpu,gpu/internal,internal/gl: replace BlitFramebuffer with CopyTexture
OpenGL ES 2.0 doesn't support glBlitFramebuffer, but does support glCopyTexSubImage2D. Fortunately, we don't need the extra features of glBlitFramebuffer anyway. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+2
-2
@@ -692,10 +692,10 @@ func (g *compute) compactLayers() error {
|
||||
continue
|
||||
}
|
||||
src := l.place.atlas.fbo
|
||||
dst := atlas.fbo
|
||||
dst := atlas.image
|
||||
sz := l.rect.Size()
|
||||
sr := image.Rectangle{Min: l.place.pos, Max: l.place.pos.Add(sz)}
|
||||
g.ctx.BlitFramebuffer(dst, src, sr, l.newPlace.pos)
|
||||
g.ctx.CopyTexture(dst, l.newPlace.pos, src, sr)
|
||||
l.place.atlas.layers--
|
||||
layers[i].place = l.newPlace
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user