Commit Graph
367 Commits
Author SHA1 Message Date
Simon Parzer 4509aafdd2 add glBindRenderbufferEXT to half_aliases
it seems like this was forgotten,
because glBindFramebufferEXT is already there
for the same reason
2015-11-03 01:32:56 +01:00
Yaron Cohen-Tal a4ead97cfd Make "epoxy_current_context_is_egl" visible. 2015-10-31 20:31:42 +02:00
Yaron Cohen-Tal 8d58c89064 Fix "epoxy_egl_get_current_gl_context_api" to use "eglQueryContext" with "EGL_CONTEXT_CLIENT_TYPE" as "attribute". 2015-10-31 20:17:47 +02:00
Yaron Cohen-Tal b3b8bd9af7 Fix "epoxy_glx_version" to handle the case when GLX is not active on the display. 2015-09-29 11:57:55 +03:00
Yaron Cohen-Tal 7d1c96c85f Update pregenerated files. 2015-09-22 20:14:37 +03:00
Yaron Cohen-Tal 6fe6b8e2d4 Merge branch "nephatrine/registry-support". 2015-09-22 10:02:44 +03:00
Daniel Wolf 262a623452 support newer/larger gl.xml 2015-09-21 23:09:23 -04:00
Yaron Cohen-Tal 2bf2468502 Merge branch "blino/master". 2015-09-21 14:15:44 +03:00
Olivier Blin fe7a96e077 dlwrap: add GLIBC_2.4 version to be able to run tests from ARM
See sysdeps/unix/sysv/linux/arm/libdl.abilist in glibc
2015-09-21 13:05:33 +02:00
Yaron Cohen-Tal 4b6d637ae0 Update "README.md". 2015-09-05 10:37:14 +03:00
Yaron Cohen-Tal 2af1715fbf Fix "FindGLESv1.cmake" and "FindGLESv2.cmake". 2015-09-04 12:51:13 +03:00
Yaron Cohen-Tal 44d51f2844 Fix support for a static build of Epoxy. Add support building and running tests with CMake. Add support for linking with the static run-time library with MSVC. 2015-09-03 23:17:39 +03:00
Yaron Cohen-Tal 64e2ee2ca8 Fix a bug in which "DllMain" isn't called when using the static version of Epoxy in Windows. 2015-08-30 15:32:07 +03:00
Yaron Cohen-Tal dd695faee3 Remove redundant code in "epoxy_get_bootstrap_proc_address". 2015-08-30 10:41:48 +03:00
Yaron Cohen-Tal ec2f42f01a Add support for building static libs with CMake. Fix file permissions. Update documentation about building static libs and about using OpenGL ES / EGL. 2015-08-27 19:13:54 +03:00
Yaron Cohen-Tal 62e384129b Add some files to the repo so that it's possible to build without running "autogen.sh". 2015-08-26 22:08:16 +03:00
Yaron Cohen-Tal 06fd4a271a Add support for CMake (no support for building/running the tests yet). Fix support for Android. Add built-in support for building with EGL support (using "khrplatform.h" and "eglplatform.h" which are distributed together with Epoxy, and should work with any platform). 2015-08-26 19:41:51 +03:00
Yaron Cohen-Tal 540952010b Fix tests to work with some OpenGL ES / EGL implementations. 2015-08-24 12:36:35 +03:00
Yaron Cohen-Tal 4c4a6e49ca Fix support of some OpenGL ES and EGL implementations, specifically on Windows. 2015-08-24 12:33:59 +03:00
Chun-wei Fan c976864bc9 src/gen_dispatch.py: Make Generated Code Build Under C89
...so that the generated code are buildable by pre-2013 Visual Studio.

 The main thing that this does is that we avoid named initializers, but
 instead initialize the structs in old-school C89 way.

 The generated code may not look that robust, but since this is generated
 code, I think this is not that much an issue; when the Khronos registry gets
 updated, all that is needed is that the code gets re-generated, and we have the
 items in the right order.
2015-07-28 19:00:47 +08:00
Yaron Cohen-Tal b527c5f01f Add new header file "common.h" to the installed files. 2015-07-19 20:59:13 +03:00
Yaron Cohen-Tal 90c6158d61 Unite defenitions "PUBLIC" and "EPOXY_IMPORTEXPORT" and add it where appropriate. Fix tests build errors. 2015-07-19 13:40:35 +03:00
Yaron Cohen-Tal 773dd02f59 Added makefiles to build with MSVC 2013, and fixed errors and warnings. 2015-07-18 17:39:12 +03:00
Eric Anholt 8bbc0d40c6 Make the glx_alias_prefer_same_name test work, and hook it up.
Apparently I started writing it, and didn't notice I wasn't building
my code when I committed the library support.
2015-07-16 11:24:34 -07:00
Eric Anholt c8cd4b7e0c Add missing files in the make dist.
Make dist is such a terrible idea.
2015-07-16 11:20:11 -07:00
Eric Anholt e2c33af5bf Bump to version 1.3.1 for release.
A small bug was noticed during debian packaging.
v1.3.1
2015-07-15 16:46:36 -07:00
Eric Anholt 35016b7589 Also drop the publishing of epoxy_conservative_egl_version()
Like epoxy_conservative_gl_version(), it's internal only (and didn't
have a published prototype in the headers).
2015-07-15 16:44:44 -07:00
Eric Anholt 118565cd8e Bump version to 1.3 for release. v1.3 2015-07-15 16:15:19 -07:00
Eric Anholt 585c703699 Add some missing spacing in generated code. 2015-07-15 16:09:06 -07:00
Eric Anholt b2c00a18af Use a concatenated string for enum descriptions.
Saves another 15kb of compiled code.
2015-07-15 16:09:06 -07:00
Eric Anholt d4620b7dd3 Use __attribute__((packed)) to reduce our data size.
Since our provider enums are small, we can store them as bytes or
shorts if we just let the compiler know that it's OK.  Saves 20kb in
the compiled library.
2015-07-15 14:47:39 -07:00
Eric Anholt 62861d12f9 Emit APIENTRY for typedefs that use it.
The XML uses a node for where the string should be.  This should fix
segfaults using GL_ARB_debug_output on windows.

Fixes #46.
2015-07-15 14:27:48 -07:00
Eric Anholt 8154c0efd3 Merge branch 'khronos-registry'
This brings in support for non-error context extensions.
2015-07-15 14:08:43 -07:00
Eric Anholt 5987e1ef1a Import registry from SVN 31705 2015-07-15 14:08:34 -07:00
Yaron Cohen-Tal a7c270f8e2 Fix epoxy_egl_get_current_gl_context_api() on non-conformant ES.
According to the OpenGL ES standard, "glGetString(GL_VERSION)" should
return a string starting with "OpenGL ES".  However, PowerVR's OpenGL
ES implementation (and perhaps others) don't comply with the standard
here.  If our context happend to be bound using EGL, then we can just
ask EGL what kind of context it was, avoiding the glGetString() check.
2015-07-15 14:07:06 -07:00
Eric Anholt 227d1312e6 Look for GL 1.1 functions in win32's OpenGL32.dll.
The windows ABI is GL 1.1, not 1.0.  You get NULL pointers for 1.1
functions when calling wglGetProcAddress().  Fixes #47.
2015-07-15 13:52:56 -07:00
Eric Anholt 8ce3e5f14f Update README for the dropping of X11 on OSX.
Fixes #39
2015-07-15 13:42:43 -07:00
Chun-wei Fan d9df59df71 src/dispatch_common.c: Remove Unneeded PUBLIC Annotation
Don't mark epoxy_conservative_gl_version() for export, as it is meant
to be a private API to be used within libepoxy only.

Reviewed-by: Eric Anholt <[email protected]>
2015-06-17 22:38:50 -07:00
Chun-wei Fan a2a51904b0 test/wgl_per_context_funcptrs.c: Fix build on Visual Studio
Ensure that we do __stdcall only after the return type, as Visual Studio
will not like it otherwise.
2015-06-05 17:51:39 -07:00
Chun-wei Fan e9f68fe3a3 Fix generated code for building on MSVC 2013
This updates the script to generate code that is buildable by Visual Studio
2013 by:

-Using a macro to define the compiler-specific way to do noinline for a
 function, and use it when needed.

-Avoid using empty arrays and structs as that is a C99 feature that will
 likely be never support on Visual Studio as it is now an optional feature
 of C11.
2015-06-05 17:51:08 -07:00
Chun-wei Fan 7d5e8e9d56 Put the callspec after the return type for MSVC.
Visual Studio does not like __stdcall before the return type, which is
what GLAPIENTRY and EPOXY_CALLSPEC expands to on Windows.
2015-06-05 17:51:08 -07:00
Chun-wei Fan e242497728 Avoid empty struct intializer on MSVC.
It is a C99 feature that is not supported (nor will it probably be at
any point) on Visual Studio.
2015-06-05 17:51:08 -07:00
Chun-wei Fan 95ecc2d1a1 Port the library_init() constructor to MSVC. 2015-06-05 17:51:07 -07:00
Chun-wei Fan d88c639e63 Fix public headers for building in Visual Studio
Ensure that we also have import/export decorations for the prototypes, as
Visual Studio does not like such decorations on the function definitions
without the prototypes decorated as well, when the function prototypes
exist.
2015-06-05 17:50:45 -07:00
Eric Anholt 136cf85424 Use the provider enum to tie-break sorting by function provider name.
Without this, we got code generation that was dependent on the
original ordering in the hash table, and thus non-reproducible builds.

Based on a commit by Stephan Kulow, but retaining the sorting by
function name first (that way all providers with the same name appear
next to each other like before, and also happens to ensure that core
names tend to appear before non-core names)
2015-06-05 17:22:58 -07:00
Eric Anholt b9fbcaf0e2 Merge remote-tracking branch 'airlied/master' 2015-06-05 16:58:26 -07:00
Eric Anholt 6411628392 Merge pull request #42 from cicku/patch-1
Update the homepage URL
2015-06-05 16:52:45 -07:00
Dave Airlie eeda3a5a6d Merge branch 'khronos-registry' 2015-05-05 16:03:00 +10:00
Dave Airlie 85e5100d67 Import registry from SVN 31039 2015-05-05 16:02:01 +10:00
Christopher Meng b7e921da13 Update the homepage URL 2015-03-04 10:37:02 +08:00