From 828a4723eec868c64aed4926d2f46f465292d258 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 12 May 2008 02:58:22 -0400 Subject: [PATCH] Implemented incorrect-but-better-than-nothing TEXLDL in GLSL profile. --HG-- branch : trunk --- mojoshader.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mojoshader.c b/mojoshader.c index c3053c29..222db6e9 100644 --- a/mojoshader.c +++ b/mojoshader.c @@ -3257,7 +3257,11 @@ static void emit_GLSL_SETP(Context *ctx) static void emit_GLSL_TEXLDL(Context *ctx) { - fail(ctx, "TEXLDL unimplemented."); // !!! FIXME + // !!! FIXME: The spec says we can't use GLSL's texture*Lod() built-ins + // !!! FIXME: from fragment shaders for some inexplicable reason. + // !!! FIXME: For now, you'll just have to suffer with the potentially + // !!! FIXME: wrong mipmap until I can figure something out. + emit_GLSL_TEXLD(ctx); } // emit_GLSL_TEXLDL static void emit_GLSL_BREAKP(Context *ctx)