diff options
author | Brian Paul <[email protected]> | 2002-06-17 23:36:31 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-06-17 23:36:31 +0000 |
commit | 85d816028a2472e0378afda65e7ab6f7ff4d76b4 (patch) | |
tree | 5e5a6d079d835e4410374970db44eaacc99d102b /src/mesa/main/texobj.c | |
parent | d373819b8cfd0d4d44eaf495dd3ff90d8481572b (diff) |
Port glXCopyContext bug from 4.0 branch.
Diffstat (limited to 'src/mesa/main/texobj.c')
-rw-r--r-- | src/mesa/main/texobj.c | 39 |
1 files changed, 38 insertions, 1 deletions
diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index f41bc13a171..7d4b402d28e 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -1,4 +1,4 @@ -/* $Id: texobj.c,v 1.55 2002/06/15 03:03:09 brianp Exp $ */ +/* $Id: texobj.c,v 1.56 2002/06/17 23:36:31 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -176,6 +176,43 @@ void _mesa_free_texture_object( struct gl_shared_state *shared, /* + * Copy texture object state from one texture object to another. + */ +void +_mesa_copy_texture_object( struct gl_texture_object *dest, + const struct gl_texture_object *src ) +{ + dest->Name = src->Name; + dest->Priority = src->Priority; + dest->BorderColor[0] = src->BorderColor[0]; + dest->BorderColor[1] = src->BorderColor[1]; + dest->BorderColor[2] = src->BorderColor[2]; + dest->BorderColor[3] = src->BorderColor[3]; + dest->WrapS = src->WrapS; + dest->WrapT = src->WrapT; + dest->WrapR = src->WrapR; + dest->MinFilter = src->MinFilter; + dest->MagFilter = src->MagFilter; + dest->MinLod = src->MinLod; + dest->MaxLod = src->MaxLod; + dest->BaseLevel = src->BaseLevel; + dest->MaxLevel = src->MaxLevel; + dest->MaxAnisotropy = src->MaxAnisotropy; + dest->CompareFlag = src->CompareFlag; + dest->CompareOperator = src->CompareOperator; + dest->ShadowAmbient = src->ShadowAmbient; + dest->CompareMode = src->CompareMode; + dest->CompareFunc = src->CompareFunc; + dest->DepthMode = src->DepthMode; + dest->_MaxLevel = src->_MaxLevel; + dest->_MaxLambda = src->_MaxLambda; + dest->GenerateMipmap = src->GenerateMipmap; + dest->Palette = src->Palette; + dest->Complete = src->Complete; +} + + +/* * Report why a texture object is incomplete. (for debug only) */ #if 0 |