<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:peavo@outlook.com" title="peavo@outlook.com">peavo@outlook.com</a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - Link errors when building cairo 1.12.18 on Windows."
href="https://bugs.freedesktop.org/show_bug.cgi?id=89208">bug 89208</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">OS</td>
<td>All
</td>
<td>Windows (All)
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Link errors when building cairo 1.12.18 on Windows."
href="https://bugs.freedesktop.org/show_bug.cgi?id=89208#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Link errors when building cairo 1.12.18 on Windows."
href="https://bugs.freedesktop.org/show_bug.cgi?id=89208">bug 89208</a>
from <span class="vcard"><a class="email" href="mailto:peavo@outlook.com" title="peavo@outlook.com">peavo@outlook.com</a>
</span></b>
<pre>diff --git a/src/cairo-wgl-context.c b/src/cairo-wgl-context.c
index 4872374..5a1bad6 100644
--- a/src/cairo-wgl-context.c
+++ b/src/cairo-wgl-context.c
@@ -259,3 +259,22 @@ cairo_gl_surface_create_for_dc (cairo_device_t
*device,
return &surface->base.base;
}
+
+static PFNGLACTIVETEXTUREARBPROC _glActiveTextureARB = NULL;
+static PFNGLBLENDFUNCSEPARATEPROC _glBlendFuncSeparate = NULL;
+
+void InitWGLStuff()
+{
+ _glActiveTextureARB =
(PFNGLACTIVETEXTUREARBPROC)wglGetProcAddress((LPCSTR)"glActiveTextureARB");
+ _glBlendFuncSeparate =
(PFNGLBLENDFUNCSEPARATEPROC)wglGetProcAddress((LPCSTR)"glBlendFuncSeparate");
+}
+
+GLAPI void APIENTRY glActiveTexture(GLenum texture)
+{
+ (*_glActiveTextureARB)(texture);
+}
+
+GLAPI void APIENTRY glBlendFuncSeparate(GLenum sfactorRGB, GLenum dfactorRGB,
GLenum sfactorAlpha, GLenum dfactorAlpha)
+{
+ (*_glBlendFuncSeparate)(sfactorRGB, dfactorRGB, sfactorAlpha,
dfactorAlpha);
+}
diff --git a/src/win32/cairo-win32-system.c b/src/win32/cairo-win32-system.c
index 8785530..a2c01d0 100644
--- a/src/win32/cairo-win32-system.c
+++ b/src/win32/cairo-win32-system.c
@@ -61,6 +61,8 @@
#include <windows.h>
+void InitWGLStuff();
+
/* declare to avoid "no previous prototype for 'DllMain'" warning */
BOOL WINAPI
DllMain (HINSTANCE hinstDLL,
@@ -75,6 +77,7 @@ DllMain (HINSTANCE hinstDLL,
switch (fdwReason) {
case DLL_PROCESS_ATTACH:
CAIRO_MUTEX_INITIALIZE ();
+ InitWGLStuff();
break;
case DLL_PROCESS_DETACH:</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>