summaryrefslogtreecommitdiff
path: root/src/glx/applegl_glx.c
AgeCommit message (Collapse)AuthorFilesLines
2012-09-05Use calloc instead of malloc/memset-0Matt Turner1-2/+1
This patch has been generated by the following Coccinelle semantic patch: @@ expression E; identifier I; @@ - I = malloc(E); + I = calloc(1, E); ... - memset(I, 0, sizeof *I); Reviewed-by: Brian Paul <brianp@vmware.com>
2012-09-05Remove Xcalloc/Xmalloc/Xfree callsMatt Turner1-3/+3
These calls allowed Xlib to use a custom memory allocator, but Xlib has used the standard C library functions since at least its initial import into git in 2003. It seems unlikely that it will grow a custom memory allocator. The functions now just add extra overhead. Replacing them will make future Coccinelle patches simpler. This patch has been generated by the following Coccinelle semantic patch: // Remove Xcalloc/Xmalloc/Xfree calls @@ expression E1, E2; @@ - Xcalloc (E1, E2) + calloc (E1, E2) @@ expression E; @@ - Xmalloc (E) + malloc (E) @@ expression E; @@ - Xfree (E) + free (E) @@ expression E; @@ - XFree (E) + free (E) Reviewed-by: Brian Paul <brianp@vmware.com>
2011-10-24apple: Implement applegl_unbind_contextJeremy Huddleston1-0/+18
glXMakeCurrent(dpy, None, NULL) would not correctly unbind the context causing subsequent GLX requests to fail in peculiar ways http://xquartz.macosforge.org/trac/ticket/514 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-06-20glx: Allow a context-specific fallback for glXGetProcAddressJeremy Huddleston1-0/+9
In applegl, GLX advertises the same extensions provided by OpenGL.framework even if such extensions are not provided by glapi. This allows a client to get access to such API. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-06-14apple: Set the glapi dispatch table on context bindJeremy Huddleston1-0/+2
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-06-13apple: applegl_destroy_context: Pass along the correct displayJeremy Huddleston1-1/+1
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-06-13apple: Dead code removalJeremy Huddleston1-1/+0
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-06-06apple: Finish build fixes for applegl_glx.cJeremy Huddleston1-3/+2
libGL.dylib now *builds* on darwin. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-06-06apple: More fixes for compilation failuresJeremy Huddleston1-6/+6
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-06-05apple: Fix multiple build failures in applegl_glx.cJeremy Huddleston1-13/+27
It is still not building, but this gets us many steps closer See https://bugs.freedesktop.org/show_bug.cgi?id=29162 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-07-28glx: Split indirect and applegl implementations into different filesKristian Høgsberg1-0/+155