mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-02 16:06:19 +00:00
gpu,gpu/internal: drop implied transformation from BlitFramebuffer
The Metal (and presumably the D3D11) backend doesn't support transformed framebuffer blits. The only caller doesn't need it either, so drop that capability from the driver abstraction. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-2
@@ -695,8 +695,7 @@ func (g *compute) compactLayers() error {
|
||||
dst := atlas.fbo
|
||||
sz := l.rect.Size()
|
||||
sr := image.Rectangle{Min: l.place.pos, Max: l.place.pos.Add(sz)}
|
||||
dr := image.Rectangle{Min: l.newPlace.pos, Max: l.newPlace.pos.Add(sz)}
|
||||
g.ctx.BlitFramebuffer(dst, src, sr, dr)
|
||||
g.ctx.BlitFramebuffer(dst, src, sr, l.newPlace.pos)
|
||||
l.place.atlas.layers--
|
||||
layers[i].place = l.newPlace
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user