Module: wine Branch: master Commit: 3c6d97278f2d46ce141a3f06075f2b9fe6a23c96 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3c6d97278f2d46ce141a3f0607...
Author: Stefan Dösinger stefan@codeweavers.com Date: Thu Oct 4 08:24:03 2007 +0200
wined3d: Implement the vFace register.
---
dlls/wined3d/glsl_shader.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c index 90062b8..f05cd72 100644 --- a/dlls/wined3d/glsl_shader.c +++ b/dlls/wined3d/glsl_shader.c @@ -871,10 +871,12 @@ static void shader_glsl_get_register_name( if (reg == 0) { /* vPos */ sprintf(tmpStr, "vpos"); + } else if (reg == 1){ + /* Note that gl_FrontFacing is a bool, while vFace is + * a float for which the sign determines front/back + */ + sprintf(tmpStr, "(gl_FrontFacing ? 1.0 : -1.0)"); } else { - /* gl_FrontFacing could be used for vFace, but note that - * gl_FrontFacing is a bool, while vFace is a float for - * which the sign determines front/back */ FIXME("Unhandled misctype register %d\n", reg); sprintf(tmpStr, "unrecognized_register"); }