summaryrefslogtreecommitdiff
path: root/opengl/libagl/light.cpp
diff options
context:
space:
mode:
author Dan Stoza <stoza@google.com> 2016-01-08 10:52:16 -0800
committer Dan Stoza <stoza@google.com> 2016-01-11 16:29:39 -0800
commitc044ae5dfc62031924c2f4c0ecc87b0da72a6b3f (patch)
tree094e146f6bf769aae8c142aa5b846b346015a141 /opengl/libagl/light.cpp
parent35f475653c2ca922acc358c607b204c8fafd6ad5 (diff)
libagl: Switch from gralloc to GraphicBufferMapper
Removes all direct references to the gralloc module from libagl and uses the GraphicBufferMapper class instead when locking and unlocking buffers. Also a couple of minor code cleanups to eliminate warnings. Change-Id: Ie982d375b3152d5f677ab54c2067179b8d34c06d
Diffstat (limited to 'opengl/libagl/light.cpp')
-rw-r--r--opengl/libagl/light.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/opengl/libagl/light.cpp b/opengl/libagl/light.cpp
index 479bf7ee07..e7fe9d71a3 100644
--- a/opengl/libagl/light.cpp
+++ b/opengl/libagl/light.cpp
@@ -229,7 +229,7 @@ static inline void validate_light_mvi(ogles_context_t* c)
#endif
vnorm3(l.normalizedObjPosition.v, l.objPosition.v);
}
- const vec4_t eyeViewer = { 0, 0, 0x10000, 0 };
+ const vec4_t eyeViewer = {{{ 0, 0, 0x10000, 0 }}};
#if OBJECT_SPACE_LIGHTING
c->transforms.mvui.point3(&c->transforms.mvui,
&c->lighting.objViewer, &eyeViewer);