diff options
Diffstat (limited to 'gpu_renderer/src/pipe_format_fourcc.rs')
-rw-r--r-- | gpu_renderer/src/pipe_format_fourcc.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gpu_renderer/src/pipe_format_fourcc.rs b/gpu_renderer/src/pipe_format_fourcc.rs index 7693973..828f372 100644 --- a/gpu_renderer/src/pipe_format_fourcc.rs +++ b/gpu_renderer/src/pipe_format_fourcc.rs @@ -5,9 +5,9 @@ use generated::p_format; macro_rules! fourcc { - ($a:expr, $b:expr, $c:expr, $d:expr) => ( + ($a:expr, $b:expr, $c:expr, $d:expr) => { Some($a as u32 | ($b as u32) << 8 | ($c as u32) << 16 | ($d as u32) << 24) - ) + }; } /// Gets the fourcc that corresponds to the given pipe format, or `None` if the format is |