forked from joejulian/gio
gpu: resize compute output when it becomes smaller
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-1
@@ -760,7 +760,7 @@ func (g *compute) render(tileDims image.Point) error {
|
||||
g.buffers.scene.buffer.Upload(gunsafe.BytesView(g.enc.scene))
|
||||
|
||||
w, h := tileDims.X*tileWidthPx, tileDims.Y*tileHeightPx
|
||||
if g.output.size.X < w || g.output.size.Y < h {
|
||||
if g.output.size.X != w || g.output.size.Y != h {
|
||||
if err := g.resizeOutput(image.Pt(w, h)); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user