Fix incorrect response to request for device attributes

This commit is contained in:
Kovid Goyal
2017-05-17 10:33:33 +05:30
parent 507edc95a8
commit 14a66762a6
4 changed files with 23 additions and 4 deletions

View File

@@ -131,6 +131,8 @@ def init_env(debug=False, sanitize=False, native_optimizations=True):
ldflags += shlex.split(os.environ.get('LDFLAGS', ''))
cflags.append('-pthread')
cflags.append('-DPRIMARY_VERSION={}'.format(version[0]))
cflags.append('-DSECONDARY_VERSION={}'.format(version[1]))
if not is_travis and not isosx and subprocess.Popen(
[PKGCONFIG, 'glew', '--atleast-version=2']
).wait() != 0: