diff options
author | Pauli Nieminen <pauli.nieminen@linux.intel.com> | 2012-05-18 17:43:55 +0300 |
---|---|---|
committer | Pauli Nieminen <pauli.nieminen@linux.intel.com> | 2012-05-21 17:12:45 +0300 |
commit | 9f42732b97e9f8deebe0ead94bac37794cf17eed (patch) | |
tree | 0fadd90b6c8c0f8ee56f96502d75ca2f590aff50 | |
parent | 5646325505667fd9cdb610528e7e111c78ac3b4b (diff) |
dispatch: Don't assume that 1.0 version is present
GLES doesn't support everything from GL 1.0 that makes it mandator to
check if given function is present in the current context. But checking
a few specif functions would cause recursing back to the stub function.
To avoid the recursion problem assume that those functions are always
present.
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
-rw-r--r-- | tests/util/gen_dispatch.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/util/gen_dispatch.py b/tests/util/gen_dispatch.py index e7f640f5..ffa37ef0 100644 --- a/tests/util/gen_dispatch.py +++ b/tests/util/gen_dispatch.py @@ -451,7 +451,8 @@ def generate_resolve_function(ds): if category.kind in ['GL', 'EGL', 'ES']: getter = 'get_core_proc("{0}", {1})'.format( f.gl_name, category.gl_10x_version) - if category.gl_10x_version == 10: + if f.name in ['GetString', 'eglQueryString', \ + 'eglGetCurrentDisplay', 'eglGetError']: # Function has always been available--no need to check # a condition. condition = 'true' |