From 72e57908c678ed7e6e50fc47a08c21c47f07d3dd Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 31 Jan 2014 15:28:13 -0800 Subject: [PATCH] Fix typo in gles2 dlsym setup If you happened to do both GLES2 and GLES1 in a process, it meant that you'd try to look up v1 procs in the v2 API, and lose. Caught by piglit oes_fixed_point-attribute-arrays. --- src/dispatch_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dispatch_common.c b/src/dispatch_common.c index 38a5f67..289694a 100644 --- a/src/dispatch_common.c +++ b/src/dispatch_common.c @@ -378,7 +378,7 @@ epoxy_gles1_dlsym(const char *name) void * epoxy_gles2_dlsym(const char *name) { - return do_dlsym(&api.gles1_handle, "libGLESv2.so.2", name, true); + return do_dlsym(&api.gles2_handle, "libGLESv2.so.2", name, true); } void *