summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/format_fallback.py
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2017-06-28 23:13:26 -0700
committerVinson Lee <[email protected]>2017-07-05 12:48:26 -0700
commit95731b7ccc605bbfe2c3cb3d533219bc0788cbaa (patch)
treeaad97c4a017434707d407bc2eea08a9477651816 /src/mesa/main/format_fallback.py
parent860a8e6b99b27b50d3545a4077afcaf0fcba264a (diff)
mesa: Avoid set comprehension.
Fix build error on CentOS 6.9 with Python 2.6. GEN main/format_fallback.c File "./main/format_fallback.py", line 42 names = {fmt.name for fmt in formats} ^ SyntaxError: invalid syntax Fixes: a1983223d883 ("mesa: Add _mesa_format_fallback_rgbx_to_rgba() [v2]") Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Dylan Baker <[email protected]>
Diffstat (limited to 'src/mesa/main/format_fallback.py')
-rw-r--r--src/mesa/main/format_fallback.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/format_fallback.py b/src/mesa/main/format_fallback.py
index e3b9916f6ee..7782e493d1d 100644
--- a/src/mesa/main/format_fallback.py
+++ b/src/mesa/main/format_fallback.py
@@ -39,7 +39,7 @@ def parse_args():
return p.parse_args()
def get_rgbx_to_rgba_map(formats):
- names = {fmt.name for fmt in formats}
+ names = set(fmt.name for fmt in formats)
for fmt in formats:
if not fmt.has_channel('r') or not fmt.has_channel('x'):