diff options
author | Eric Anholt <eric@anholt.net> | 2013-12-02 16:25:02 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2013-12-05 12:38:15 -0800 |
commit | 0270c80008e3c6b9f2f5dfba03631f72c7920796 (patch) | |
tree | 0f09c960c787fe3a67213f214263d4f983472213 /test/egl_common.h | |
parent | 111c54992b54f090b63278daa541e29b341bb2ad (diff) | |
download | libepoxy-0270c80008e3c6b9f2f5dfba03631f72c7920796.tar.gz |
Add support for EGL.
This totally replaces the getprocaddress and dlsym code, which was
basically just stubs up until now. The is_glx/is_egl() is also
dropped -- they weren't doing anything, and the only false answer they
could give is if the dlopen were to fail.
Diffstat (limited to 'test/egl_common.h')
-rw-r--r-- | test/egl_common.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/egl_common.h b/test/egl_common.h new file mode 100644 index 0000000..1c5963b --- /dev/null +++ b/test/egl_common.h @@ -0,0 +1,25 @@ +/* + * Copyright © 2013 Intel Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice (including the next + * paragraph) shall be included in all copies or substantial portions of the + * Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ + +EGLDisplay * +get_egl_display_or_skip(void); |