diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-10-17 14:13:00 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-10-17 14:13:00 -0600 |
commit | 87a6fe57e85ea5f273e808211a0e61d2b837b8e2 (patch) | |
tree | 0ed8f21ce93e75f21b41bad302bfc057255bb17d | |
parent | b50a0b89d946cac3c18a84c3a77cc8dcf96eeec7 (diff) | |
parent | d422c1eb5c0fac8f946758ecce96072505c77683 (diff) |
Merge commit 'origin/gallium-0.1' into gallium-0.2
Conflicts:
progs/trivial/tri.c
-rw-r--r-- | progs/trivial/tri.c | 17 | ||||
-rw-r--r-- | src/mesa/state_tracker/st_cb_texture.c | 4 |
2 files changed, 9 insertions, 12 deletions
diff --git a/progs/trivial/tri.c b/progs/trivial/tri.c index aa45adb6c2..d3c6b59ea5 100644 --- a/progs/trivial/tri.c +++ b/progs/trivial/tri.c @@ -57,16 +57,13 @@ static void Reshape(int width, int height) static void Key(unsigned char key, int x, int y) { - - switch (key) { - case 27: - glutDestroyWindow(win); - exit(0); - default: - return; - } - - glutPostRedisplay(); + switch (key) { + case 27: + exit(0); + default: + glutPostRedisplay(); + return; + } } static void Draw(void) diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index acaf1de882..d08229b57a 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -156,7 +156,7 @@ st_FreeTextureImageData(GLcontext * ctx, struct gl_texture_image *texImage) } if (texImage->Data) { - free(texImage->Data); + _mesa_align_free(texImage->Data); texImage->Data = NULL; } } @@ -541,7 +541,7 @@ st_TexImage(GLcontext * ctx, sizeInBytes = depth * dstRowStride * postConvHeight; } - texImage->Data = malloc(sizeInBytes); + texImage->Data = _mesa_align_malloc(sizeInBytes, 16); } if (!texImage->Data) { |