projects
/
simavr
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
c3camera: matrix contains the eye position
[simavr]
/
examples
/
shared
/
libc3
/
src
/
c3context.c
diff --git
a/examples/shared/libc3/src/c3context.c
b/examples/shared/libc3/src/c3context.c
index
79508e6
..
8a85c93
100644
(file)
--- a/
examples/shared/libc3/src/c3context.c
+++ b/
examples/shared/libc3/src/c3context.c
@@
-44,9
+44,9
@@
c3context_init(
c3context_view_t v = {
.type = C3_CONTEXT_VIEW_EYE,
.size = c3vec2f(w, h),
- .cam = c3cam_new(),
.dirty = 1,
};
+ c3cam_init(&v.cam);
c3context_view_array_add(&c->views, v);
c->root = c3object_new(NULL);
c->root->context = c;