mirror of
https://github.com/bloeys/nmage.git
synced 2025-12-29 13:28:20 +00:00
Add todo
This commit is contained in:
@ -9,6 +9,13 @@ import (
|
|||||||
"github.com/go-gl/gl/v4.1-core/gl"
|
"github.com/go-gl/gl/v4.1-core/gl"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// @TODO: Unfortunately some uniform gl functions allocate because Go can't prove that the
|
||||||
|
// gl function doesn't keep a pointer to the vectors/matrices we pass in, leading to them
|
||||||
|
// escaping to the heap.
|
||||||
|
//
|
||||||
|
// Perhaps later we move to our own gl functions that are more optimized? assuming such an optimization
|
||||||
|
// is even possible.
|
||||||
|
|
||||||
var (
|
var (
|
||||||
lastMatId uint32
|
lastMatId uint32
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user