Work around Mesa problem with PFNGLACTIVETEXTUREPROC
PFNGLACTIVETEXTUREPROC (a GL-1.2 addition) was inadvertently missing from some recent versions of Mesa (like that in Fedora 11.) Use the identical PFNGLACTIVETEXTUREARBPROC instead.
This commit is contained in:
parent
4241f91a0a
commit
86f8c1863e
@ -32,7 +32,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !CLUTTER_CHECK_VERSION(1,1,3)
|
#if !CLUTTER_CHECK_VERSION(1,1,3)
|
||||||
static PFNGLACTIVETEXTUREPROC activeTexture;
|
static PFNGLACTIVETEXTUREARBPROC activeTexture;
|
||||||
static PFNGLGENFRAMEBUFFERSPROC genFramebuffers;
|
static PFNGLGENFRAMEBUFFERSPROC genFramebuffers;
|
||||||
static PFNGLDELETEFRAMEBUFFERSPROC deleteFramebuffers;
|
static PFNGLDELETEFRAMEBUFFERSPROC deleteFramebuffers;
|
||||||
static PFNGLBINDFRAMEBUFFERPROC bindFramebuffer;
|
static PFNGLBINDFRAMEBUFFERPROC bindFramebuffer;
|
||||||
@ -489,7 +489,7 @@ initialize_gl_functions (void)
|
|||||||
{
|
{
|
||||||
initialized = TRUE;
|
initialized = TRUE;
|
||||||
|
|
||||||
activeTexture = (PFNGLACTIVETEXTUREPROC) cogl_get_proc_address ("glActiveTextureARB");
|
activeTexture = (PFNGLACTIVETEXTUREARBPROC) cogl_get_proc_address ("glActiveTextureARB");
|
||||||
genFramebuffers = (PFNGLGENFRAMEBUFFERSPROC) cogl_get_proc_address ("glGenFramebuffersEXT");
|
genFramebuffers = (PFNGLGENFRAMEBUFFERSPROC) cogl_get_proc_address ("glGenFramebuffersEXT");
|
||||||
deleteFramebuffers = (PFNGLDELETEFRAMEBUFFERSPROC) cogl_get_proc_address ("glDeleteFramebuffersEXT");
|
deleteFramebuffers = (PFNGLDELETEFRAMEBUFFERSPROC) cogl_get_proc_address ("glDeleteFramebuffersEXT");
|
||||||
bindFramebuffer = (PFNGLBINDFRAMEBUFFERPROC) cogl_get_proc_address ("glBindFramebufferEXT");
|
bindFramebuffer = (PFNGLBINDFRAMEBUFFERPROC) cogl_get_proc_address ("glBindFramebufferEXT");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user