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 <[email protected]>
---
 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 e7f640f..ffa37ef 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'
-- 
1.7.5.4

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to