diff options
author | Michal Krol <[email protected]> | 2009-11-24 11:22:03 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-11-24 11:22:03 +0100 |
commit | bae9ece685e3c10fc0118e99771845d15895a0cc (patch) | |
tree | e90486cd9a3d0b1003c34769699366bb48f20fb3 /src/mesa | |
parent | 53d9b7d361915d6cf33b73017789e746342cc453 (diff) |
slang: Fix allocation size.
We don't need 16K+ to store a single pointer.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/shader/slang/slang_emit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/shader/slang/slang_emit.c b/src/mesa/shader/slang/slang_emit.c index fe39b46dbb4..99eb254cee0 100644 --- a/src/mesa/shader/slang/slang_emit.c +++ b/src/mesa/shader/slang/slang_emit.c @@ -81,8 +81,8 @@ new_subroutine(slang_emit_info *emitInfo, GLuint *id) emitInfo->Subroutines = (struct gl_program **) _mesa_realloc(emitInfo->Subroutines, - n * sizeof(struct gl_program), - (n + 1) * sizeof(struct gl_program)); + n * sizeof(struct gl_program *), + (n + 1) * sizeof(struct gl_program *)); emitInfo->Subroutines[n] = ctx->Driver.NewProgram(ctx, emitInfo->prog->Target, 0); emitInfo->Subroutines[n]->Parameters = emitInfo->prog->Parameters; emitInfo->NumSubroutines++; |