change Context to a field (instead of embed) in ContextHolder
This commit is contained in:
parent
888e69899e
commit
fc7fda188f
|
@ -53,7 +53,7 @@ func (c Context) WithShader(s *Shader) Context {
|
||||||
|
|
||||||
// ContextHolder is a root Doer with no parent. It simply forwards a context to a child.
|
// ContextHolder is a root Doer with no parent. It simply forwards a context to a child.
|
||||||
type ContextHolder struct {
|
type ContextHolder struct {
|
||||||
Context
|
Context Context
|
||||||
}
|
}
|
||||||
|
|
||||||
// Do calls sub and passes it the held context.
|
// Do calls sub and passes it the held context.
|
||||||
|
|
Loading…
Reference in New Issue