Mesa (master): intel: fix build

Marek Olšák mareko at kemper.freedesktop.org
Tue Mar 29 09:03:55 PDT 2011


Module: Mesa
Branch: master
Commit: 7d41857566d900aee3319f06c272049e6211acc1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7d41857566d900aee3319f06c272049e6211acc1

Author: Marek Olšák <maraeo at gmail.com>
Date:   Tue Mar 29 18:01:44 2011 +0200

intel: fix build

broken with e5c6a92a12b5cd7db205d72039f58d302b0be9d5
(mesa: implement clamping controls (ARB_color_buffer_float))

---

 src/mesa/drivers/dri/i915/i915_fragprog.c |    2 +-
 src/mesa/drivers/dri/i965/brw_program.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/i915/i915_fragprog.c b/src/mesa/drivers/dri/i915/i915_fragprog.c
index 89de2a8..7286e2b 100644
--- a/src/mesa/drivers/dri/i915/i915_fragprog.c
+++ b/src/mesa/drivers/dri/i915/i915_fragprog.c
@@ -1291,7 +1291,7 @@ i915ProgramStringNotify(struct gl_context * ctx,
        */
       if (p->FragProg.FogOption) {
          /* add extra instructions to do fog, then turn off FogOption field */
-         _mesa_append_fog_code(ctx, &p->FragProg, TRUE);
+         _mesa_append_fog_code(ctx, &p->FragProg, GL_TRUE);
          p->FragProg.FogOption = GL_NONE;
       }
    }
diff --git a/src/mesa/drivers/dri/i965/brw_program.c b/src/mesa/drivers/dri/i965/brw_program.c
index 2132b82..b5ec55b 100644
--- a/src/mesa/drivers/dri/i965/brw_program.c
+++ b/src/mesa/drivers/dri/i965/brw_program.c
@@ -135,7 +135,7 @@ static GLboolean brwProgramStringNotify( struct gl_context *ctx,
       struct gl_shader_program *shader_program;
 
       if (fprog->FogOption) {
-         _mesa_append_fog_code(ctx, fprog, TRUE);
+         _mesa_append_fog_code(ctx, fprog, GL_TRUE);
          fprog->FogOption = GL_NONE;
       }
 



More information about the mesa-commit mailing list