summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300/r300_texmem.c
diff options
context:
space:
mode:
authorVladimir Dergachev <volodya@freedesktop.org>2005-01-31 02:52:59 +0000
committerVladimir Dergachev <volodya@freedesktop.org>2005-01-31 02:52:59 +0000
commit9c1773e505307140f78eae139060feff09f9bc4f (patch)
treecde790913fdfdc1200d0cf56839137586cc7659e /src/mesa/drivers/dri/r300/r300_texmem.c
parent15f108335aa315cf576fd02bc9294d690b072329 (diff)
Use SecondaryColorPtr, not ColorPtr[1] (the latter is NULL).
This fixes segfault in tuxracer-demo. It locks up after this though.
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_texmem.c')
-rw-r--r--src/mesa/drivers/dri/r300/r300_texmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_texmem.c b/src/mesa/drivers/dri/r300/r300_texmem.c
index 926031c805..49631d6b9f 100644
--- a/src/mesa/drivers/dri/r300/r300_texmem.c
+++ b/src/mesa/drivers/dri/r300/r300_texmem.c
@@ -406,7 +406,7 @@ static void uploadSubImage(r300ContextPtr rmesa, r300TexObjPtr t,
} while (ret && errno == EAGAIN);
UNLOCK_HARDWARE(&rmesa->radeon);
-
+
if (ret) {
fprintf(stderr, "DRM_RADEON_TEXTURE: return = %d\n", ret);
fprintf(stderr, " offset=0x%08x\n", offset);