mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 08:55:35 +00:00
gpu: don't panic for nil op.Ops argument to GPU.Frame
Updates gio#306 Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -132,6 +132,14 @@ func TestDepth(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestNoOps(t *testing.T) {
|
||||
w, release := newTestWindow(t)
|
||||
defer release()
|
||||
if err := w.Frame(nil); err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
}
|
||||
|
||||
func newTestWindow(t *testing.T) (*Window, func()) {
|
||||
t.Helper()
|
||||
sz := image.Point{X: 800, Y: 600}
|
||||
|
||||
Reference in New Issue
Block a user