summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Avoid name conflicts between pkgconfig's EGL_LIBS and a temporary var.tempEric Anholt2014-06-131-6/+6
| | | | | | I felt a little uncomfortable knowing I had two things defining EGL_LIBS, but it worked on my system. It failed on the travis ci build.
* Fix context type detection if we find eglGetCurrentContext().Eric Anholt2014-06-131-1/+1
| | | | Fixes #29.
* Use the EGL pkgconfig for finding eglplatform.h.Eric Anholt2014-06-133-1/+5
| | | | | | | We don't ever explicity link against libEGL, so no need to make use of EGL_LIBS. Fixes #30.
* tests: Fix the passing of the "-z now" arg to the linker.Eric Anholt2014-06-131-1/+1
| | | | | | These LDFLAGS go to the compiler, and getting the arg to the linker requires -Wl or -Xlinker. gcc apparently was passing this through anyway, while clang was getting angry.
* Add a control file for Travis CI.Eric Anholt2014-06-131-0/+13
| | | | | | | This isn't quite as good as I'd like -- the XVFB setup doesn't support a bunch of context creation extensions that we use, and I haven't looked into the multiplatform stuff for doing OS X testing yet. I think it's a good start, though.
* Remove a C99ism from dispatch.Eric Anholt2014-06-131-1/+2
| | | | | I've decided it's time to accept that building with MSVC 2010 is a way that people want to use this software.
* Merge pull request #27 from Sonicadvance1/Android-SupportEric Anholt2014-06-132-7/+30
|\ | | | | Add support for Android.
| * Adds support for Android.Ryan Houdek2014-05-282-7/+30
|/ | | | | | | | This has been tested with both OpenGL and OpenGL ES on Android. We can't use dlsym on Android to get all the function pointers since Android's libGLES* libraries are just shim libraries that pass everything through to the real vendor specific libraries. Due to this we must grab function pointers entirely through eglGetProcAddress instead of dlsym.
* Bump version to 1.2 for release.v1.2Eric Anholt2014-05-131-1/+1
|
* Merge branch 'khronos-registry'Eric Anholt2014-05-132-418/+505
|\
| * Import registry from SVN 26622Eric Anholt2014-05-133-419/+536
| |
* | Don't forget to install the wgl headers.Eric Anholt2014-05-132-0/+6
| | | | | | | | Fixes #26
* | Move __stdcall into the parens for function pointer definitions.Eric Anholt2014-04-103-14/+18
| | | | | | | | MSVC 2010 appears to require that it be located there.
* | Fix EGL context detection for non-GLES2-core functions.Eric Anholt2014-04-082-11/+8
| | | | | | | | | | | | | | Fixes failure of the X Server with glamor using desktop GL on EGL, and the associated testcase in the tree. This was clearly just copy-and-paste failure on my part in b251e3ae337cecda3cbede6fde8cc8f7cef942c9.
* | Add a test for a failure I found with the X Server after my last fixes.Eric Anholt2014-04-083-0/+135
| |
* | Disable the dlwrap-based tests on apple.Eric Anholt2014-03-282-2/+16
| | | | | | | | We'd need a dlvsym() equivalent.
* | win32: Delay using dispatch tables until the second MakeCurrent.Eric Anholt2014-03-284-45/+55
| | | | | | | | Fixes #11.
* | Use #defines to shrink the size of gl_generated_dispatch.cEric Anholt2014-03-282-75/+108
| | | | | | | | I was running into file size limits with win32 debug symbols.
* | Prefer non-aliased functions when resolving.Eric Anholt2014-03-284-15/+115
| | | | | | | | | | | | | | | | This increases the size of the library, but avoids some of the concerns that have been brought up with the library silently switching you from glWhateverEXT() to glWhatever() if there might be slight behavior differences between the two that hadn't been identified. The downside is that it means we can't share the resolver functions among aliases.
* | wgl: Add a test for MakeCurrent returning different function pointers.Eric Anholt2014-03-282-0/+169
| | | | | | | | Huh, my old rule of "untested code is broken code" didn't hold up, for once.
* | Clean up epoxy_current_context_is_glx().Eric Anholt2014-03-271-16/+20
| | | | | | | | | | | | | | Now that it's split out from epoxy_get_core_proc_address(), the particular symbols we were testing for before calling GetCurrentContext() didn't make much sense, plus we were leaking dlerror()s still.
* | Ask glXGetProcAddress for ES symbols when we're on a GLX context.Eric Anholt2014-03-272-7/+18
| | | | | | | | Fixes #24
* | Factor out the GLX versus EGL current context detection code.Eric Anholt2014-03-271-43/+70
| | | | | | | | | | It turns out I need to reuse this for GLES symbols when using GLX_EXT_create_context_es2_profile.
* | Don't leak dlerror()s while we're trying to probe libraries.Eric Anholt2014-03-271-4/+11
| | | | | | | | Again, no known bugs, but it seems like a bad idea.
* | Don't dlsym() if we failed to dlopen().Eric Anholt2014-03-271-3/+6
| | | | | | | | No reported bugs I'm fixing here, just cleanup.
* | test: Add a test using GLX_EXT_create_context_es2_profile.Eric Anholt2014-03-273-0/+125
| | | | | | | | | | This is based on a bug report from Steinar H. Gunderson about using GLES3 with SDL and epoxy.
* | test: Avoid segfaulting when nvidia driver does a dlopen(RTLD_DEFAULT)Eric Anholt2014-03-271-0/+3
| |
* | win32: Fix a C90 compiler warning.Eric Anholt2014-03-271-1/+1
| |
* | win32: Add support for wglUseFontBitmaps().Eric Anholt2014-03-272-0/+13
| | | | | | | | Fixes #10.
* | win32: Add a test for wglUseFontBitmaps().Eric Anholt2014-03-273-0/+84
| |
* | Add EGL_NOK_swap_region definition.Eric Anholt2014-03-271-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I couldn't find a spec for this one on the internet, but this matches the prototype in eglmesaext.h. The note in swap_region2 says: 4) How is this extension an improvement over EGL_NOK_swap_region? RESOLVED: This extension builds on the previous EGL_NOK_swap_region extension by requiring that the implementation considers the update region provided by the application as a mandate rather than a hint. This allows for region-restricted rendering without requiring the use of preserved buffer swaps which may be relatively expensive for the implementation. Furthermore, whilst preserved swap behaviour is necessary for incremental rendering, many applications fully re-render modified surface regions and so don't require preserved swap behaviour. This extension provides a lighter weight surface update mechanism for such applications.
* | Add EGL_NOK_swap_region2 definition.Eric Anholt2014-03-271-0/+12
| | | | | | | | | | | | Found at: https://www.khronos.org/registry/egl/extensions/NOK/EGL_NOK_swap_region2.txt
* | Add EGL_NOK_texture_from_pixmap definition.Eric Anholt2014-03-271-1/+7
| | | | | | | | | | | | Found at: https://www.khronos.org/registry/egl/extensions/NOK/EGL_NOK_texture_from_pixmap.txt
* | Merge branch 'khronos-registry'Eric Anholt2014-03-274-436/+941
|\ \ | |/ | | | | This brings in GLES 3.1, EGL 1.5, and GLX_MESA_query_renderer.
| * Import registry from SVN 26007Eric Anholt2014-03-274-436/+973
| |
* | Remove a debug printf that slipped in.Eric Anholt2014-03-271-2/+0
| |
* | Avoid using eglGPA() for core funcs when the current context is GLX.Eric Anholt2014-03-191-2/+7
| | | | | | | | | | | | If you already had GLX loaded by epoxy, this wouldn't happen, but on the first call, fallback cases might have taken the EGL path if EGL was loaded.
* | Refactor dispatch_common's EGL context detection code.Eric Anholt2014-03-191-30/+46
| | | | | | | | I want to reuse this from get_core_proc_address().
* | Try to use glXGPA() for core funcs if the current context is GLX.Eric Anholt2014-03-192-18/+13
| | | | | | | | | | | | | | Fixes the GLX-only subtest of egl_and_glx_different_pointers. Now what remains is dispatch tables for when you're actively using both. Fixes #23
* | Try to avoid looking up bootstrap functions in the wrong library.Eric Anholt2014-03-192-6/+3
| | | | | | | | Fixes the EGL-only subtest of egl_and_glx_different_pointers.
* | Add a test for EGL and GLX returning different function pointers.Eric Anholt2014-03-196-75/+426
| | | | | | | | | | This is the case on the nvidia binary driver's GL, or when you've got a system mixing nvidia binary GL and Mesa EGL.
* | Import a copy of dlwrap from libfips.Eric Anholt2014-03-192-0/+310
| | | | | | | | This is just cworth's code, reindented for this project.
* | Actually fix #21 (hopefully).Eric Anholt2014-03-171-1/+1
| |
* | Add support for looking up GLES3 functions using dlsym().Eric Anholt2014-03-172-1/+23
| | | | | | | | | | | | | | ARM and Mesa disagreed on how to look up the functions, so support both ways. Fixes #21
* | Fix test build.Eric Anholt2014-03-171-2/+2
| | | | | | | | | | I was initially planning on having a separate file of the overrides when I'd forgotten I couldn't rely on ELF symbol lookup.
* | Catch eglBindAPI() failures in looking up bootstrap functions.Eric Anholt2014-03-172-21/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | This fixes crashes on ARM's Mali drivers, where desktop GL isn't supported, and epoxy didn't notice the error and tried to dlsym() on libGL.so.1. An alternative would have been to look at the response from eglQueryAPI() first, but that would have meant that we still need to BindAPI in the case that eglQueryAPI returns something like VG or CL, and so we needed to handle these errors regardless. Fixes #22
* | Extend the egl_without_glx test for another quirk of the platform.Eric Anholt2014-03-172-6/+58
| | | | | | | | | | | | | | | | Epoxy dlsym()s directly into libEGL instead of using dlsym() on a NULL handle, so we can't relying on ELF resolution like we do for dlopen(). Instead, just override epoxy's function pointers for the functions epoxy will call in the process of getting one of these bootstrap functions.
* | Add aliases for OES_get_program_binaryFredrik Höglund2014-02-121-0/+2
| |
* | Add aliases for APPLE_syncFredrik Höglund2014-02-121-0/+7
| |
* | Add aliases for EXT_texture_storageFredrik Höglund2014-02-121-0/+3
| |