opengl32: Fix outline-font glyphs rendering with incorrect frontfaces.

Sam Edwards cfsworks at gmail.com
Sun Oct 28 23:21:31 CDT 2012


The MSDN documentation on wglUseFontOutlines specifies:
With WGL_FONT_POLYGONS, the created display lists call glFrontFace( 
GL_CW ) or glFrontFace( GL_CCW ); thus the current front-face value 
might be altered.
However, Wine's implementation of this function does not do this. It 
instead assumes that the application has the glFrontFace set to GL_CW 
already. This means that applications that use glFrontFace(GL_CCW) will 
fail to render text correctly.
-------------- next part --------------
>From 9d025df798dae19637f1ac34925db750450491eb Mon Sep 17 00:00:00 2001
From: Sam Edwards <CFSworks at gmail.com>
Date: Mon, 29 Oct 2012 04:06:45 +0000
Subject: opengl32: Fix outline-font glyphs rendering with incorrect
 frontfaces.

---
 dlls/opengl32/wgl.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/opengl32/wgl.c b/dlls/opengl32/wgl.c
index eb24b0f..b6efdba 100644
--- a/dlls/opengl32/wgl.c
+++ b/dlls/opengl32/wgl.c
@@ -1399,6 +1399,7 @@ static BOOL wglUseFontOutlines_common(HDC hdc,
         }
 
 	funcs->gl.p_glNewList(listBase++, GL_COMPILE);
+        funcs->gl.p_glFrontFace(GL_CW);
         pgluTessBeginPolygon(tess, NULL);
 
         pph = (TTPOLYGONHEADER*)buf;
-- 
1.7.10.4



More information about the wine-patches mailing list