~eliasnaur/gio-example

0d37441547dd9b6bee5305fcef91ba8f2fda4653 — Elias Naur a month ago 9373e1c
opengl: use the correct framebuffer for screenshot rendering

Add go:build tags while here.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
1 files changed, 1 insertions(+), 1 deletions(-)

M opengl/main.go
M opengl/main.go => opengl/main.go +1 -1
@@ 179,7 179,7 @@ func screenshot(ctx gpu.GPU, size image.Point, ops *op.Ops) error {
	}
	drawGL()
	ctx.Collect(size, ops)
	if err := ctx.Frame(gpu.OpenGLRenderTarget{}); err != nil {
	if err := ctx.Frame(gpu.OpenGLRenderTarget{V: uint(fbo)}); err != nil {
		return fmt.Errorf("screenshot: %w", err)
	}
	r := image.Rectangle{Max: size}