undefined reference to glActiveTexture and glBlendFuncSeparate
Submitted by dan..@..on.org
Assigned to cairo-bugs mailing list
Description
Created attachment 103866 Patch that solves the issue.
When compiling cairo with the gl backend enabled on windows with mingw-w64 I get undefined references to glActiveTexture and glBlendFuncSeparate as the opengl32 library only exposes OpenGL 1.1 entry points.
I attached a patch that queries the two entry points via the GetProcAddress mechanism in cairo-gl-dispatcher.c instead. The patch works against cairo-1.12.16 and the current git version.
Attachment 103866, "Patch that solves the issue.":
cairo-fix-win32-unresolved-gl-entry-points.patch