Whoops, cut-and-paste error in GLSL profile's SLT emitter. trunk
authorRyan C. Gordon <icculus@icculus.org>
Tue, 22 Apr 2008 02:32:00 -0400
branchtrunk
changeset 179 3db6b937958e
parent 178 b1d354511685
child 180 e25cd1bad94d
Whoops, cut-and-paste error in GLSL profile's SLT emitter.
mojoshader.c
--- a/mojoshader.c	Tue Apr 22 02:31:01 2008 -0400
+++ b/mojoshader.c	Tue Apr 22 02:32:00 2008 -0400
@@ -2248,7 +2248,7 @@
 
     // float(bool) or vec(bvec) results in 0.0 or 1.0, like SGE wants.
     if (vecsize == 1)
-        code = make_GLSL_destarg_assign(ctx, "float(%s >= %s)", src0, src1);
+        code = make_GLSL_destarg_assign(ctx, "float(%s < %s)", src0, src1);
     else
     {
         code = make_GLSL_destarg_assign(ctx, "vec%d(lessThan(%s, %s))",