diff options
author | Nicolai Haehnle <nhaehnle@gmail.com> | 2009-02-14 21:43:30 +0100 |
---|---|---|
committer | Nicolai Haehnle <nhaehnle@gmail.com> | 2009-02-14 21:46:44 +0100 |
commit | 7d19d2768491f4de3b674106e93c24d29712404f (patch) | |
tree | b1a5404701fac69f541820ac64077986b00194df /src/mesa/drivers/dri/radeon/radeon_tex.c | |
parent | 2d9471b28159b9af952c6a87868ff648a6055c55 (diff) | |
download | external_mesa3d-7d19d2768491f4de3b674106e93c24d29712404f.zip external_mesa3d-7d19d2768491f4de3b674106e93c24d29712404f.tar.gz external_mesa3d-7d19d2768491f4de3b674106e93c24d29712404f.tar.bz2 |
radeon-common: Fix crash in glGetTexImage
Since texture images are now stored in miptrees, we cannot usually
access them directly via the Data pointer.
So we wrap Mesa's implementation by map/unmap calls.
This crash was triggered by Sauerbraten, Piglit now contains a
regression test.
Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/radeon/radeon_tex.c')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_tex.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_tex.c b/src/mesa/drivers/dri/radeon/radeon_tex.c index e1b988b..4d98b72 100644 --- a/src/mesa/drivers/dri/radeon/radeon_tex.c +++ b/src/mesa/drivers/dri/radeon/radeon_tex.c @@ -456,6 +456,8 @@ void radeonInitTextureFuncs( struct dd_function_table *functions ) functions->TexImage2D = radeonTexImage2D; functions->TexSubImage1D = radeonTexSubImage1D; functions->TexSubImage2D = radeonTexSubImage2D; + functions->GetTexImage = radeonGetTexImage; + functions->GetCompressedTexImage = radeonGetCompressedTexImage; functions->NewTextureObject = radeonNewTextureObject; // functions->BindTexture = radeonBindTexture; |