mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
gpu/gl: don't panic if no input layout is bound
Rendering will probably not be correct, but a panic is overreacting. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-1
@@ -620,7 +620,7 @@ func (b *Backend) BindVertexBuffer(buf backend.Buffer, stride, offset int) {
|
||||
func (b *Backend) setupVertexArrays() {
|
||||
layout := b.state.layout
|
||||
if layout == nil {
|
||||
panic("no input layout is current")
|
||||
return
|
||||
}
|
||||
buf := b.state.buffer
|
||||
b.funcs.BindBuffer(ARRAY_BUFFER, buf.buf.obj)
|
||||
|
||||
Reference in New Issue
Block a user