summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2013-11-29 06:40:35 -0700
committerBrian Paul <brianp@vmware.com>2013-11-29 06:41:14 -0700
commit95d6ed22b3b33c1d3c748ef88db53866eb7c3f91 (patch)
tree5f1b15ae79f2618c9895320073aaf247e20be5b3 /src
parentefe7257ea741187bddfb8db5361041f1d8283592 (diff)
downloadexternal_mesa3d-95d6ed22b3b33c1d3c748ef88db53866eb7c3f91.zip
external_mesa3d-95d6ed22b3b33c1d3c748ef88db53866eb7c3f91.tar.gz
external_mesa3d-95d6ed22b3b33c1d3c748ef88db53866eb7c3f91.tar.bz2
mesa: fix flags assignment in save_WaitSync()
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. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/dlist.c2
1 files changed, 1 insertions, 1 deletions
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];
}