diff options
Diffstat (limited to 'mesalib/src/mesa/main/uniforms.c')
-rw-r--r-- | mesalib/src/mesa/main/uniforms.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mesalib/src/mesa/main/uniforms.c b/mesalib/src/mesa/main/uniforms.c index fe1ce6d7b..b0f9c33b8 100644 --- a/mesalib/src/mesa/main/uniforms.c +++ b/mesalib/src/mesa/main/uniforms.c @@ -802,7 +802,10 @@ set_program_uniform(struct gl_context *ctx, struct gl_program *program, else uniformVal[i].b = uniformVal[i].u ? 1 : 0; - if (!ctx->Const.NativeIntegers) + if (ctx->Const.NativeIntegers) + uniformVal[i].u = + uniformVal[i].b ? ctx->Const.UniformBooleanTrue : 0; + else uniformVal[i].f = uniformVal[i].b ? 1.0f : 0.0f; } } |