[Mesa-dev] [PATCH 4/9] mesa: fix flags assignment in save_WaitSync()
Brian Paul
brianp at vmware.com
Sat Nov 23 15:42:57 PST 2013
The flags value is a bitfield so use the union's 'bf' field, not 'e'
(enum) field. There's no actual change in behavior here since both
fields of the union are the same size.
---
src/mesa/main/dlist.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c
index 0b81327..74800da 100644
--- a/src/mesa/main/dlist.c
+++ b/src/mesa/main/dlist.c
@@ -6775,7 +6775,7 @@ save_WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout)
union uint64_pair p;
p.uint64 = timeout;
n[1].data = sync;
- n[2].e = flags;
+ n[2].bf = flags;
n[3].ui = p.uint32[0];
n[4].ui = p.uint32[1];
}
--
1.7.10.4
More information about the mesa-dev
mailing list