summaryrefslogtreecommitdiff
path: root/src/cairo-gl-dispatch.c
AgeCommit message (Collapse)AuthorFilesLines
2011-05-10gl: Add fallback path for GLES2 implementations not supporting GL_OES_mapbufferAlexandros Frantzis1-2/+1
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-05-10gl: Fall back to dlsym() if *GetProcAddress() failsAlexandros Frantzis1-0/+54
In strictly conforming EGL implementations, eglGetProcAddress() can be used only to get extension functions, but some of the functions we want belong to core GL(ES). If the *GetProcAddress function provided by the context fails, try to get the address of the wanted GL function using standard system facilities (eg dlsym() in *nix systems). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-05-10gl: Add GLES2 support to dispatch table initializationAlexandros Frantzis1-34/+71
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-12-17gl: Fix #include's to pass 'make check'Andrea Canciani1-0/+1
'make check' complains that: Checking that private header files #include "some cairo header" first (or none) cairo-gl-dispatch-private.h:#include <stddef.h> Checking that source files #include "cairoint.h" first (or none) cairo-gl-dispatch.c:#include "cairo-gl-private.h" cairo-gl-info.c:#include "cairo-gl-private.h"
2010-12-15gl: Add infrastructure for calling GL functions using a dispatch tableAlexandros Frantzis1-0/+144
Some GL functions can be called using different names depending on the GL version and available extensions (ARB, EXT). The dispatch table abstracts these differences and provides a uniform API for dealing with these functions.