Implemented LOGP in GLSL profile. trunk
authorRyan C. Gordon <icculus@icculus.org>
Sun, 06 Apr 2008 09:23:40 -0400
branchtrunk
changeset 111 aeff087f4a32
parent 110 c9e3d24f2e5a
child 112 5ddfb2f7ca4a
Implemented LOGP in GLSL profile.
mojoshader.c
--- a/mojoshader.c	Sun Apr 06 08:52:24 2008 -0400
+++ b/mojoshader.c	Sun Apr 06 09:23:40 2008 -0400
@@ -2546,7 +2546,8 @@
 
 static void emit_GLSL_LOGP(Context *ctx)
 {
-    fail(ctx, "unimplemented.");  // !!! FIXME
+    // LOGP is just low-precision LOG, but we'll take the higher precision.
+    emit_GLSL_LOG(ctx);
 } // emit_GLSL_LOGP
 
 static void emit_GLSL_CND(Context *ctx)