summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorAapo Tahkola <[email protected]>2005-10-28 12:14:58 +0000
committerAapo Tahkola <[email protected]>2005-10-28 12:14:58 +0000
commitdc44372ba7ce4d068d87e983f37a2e31a61f8997 (patch)
treeb2a37377d6f0bddc76657c34cd8f8220abff19c0 /src/mesa/drivers
parenteb171b0c10ece5e2a4800cadf8680c24e0d92cda (diff)
Fix texture mixup when two or more contexts.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/r300/radeon_lock.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/r300/radeon_lock.c b/src/mesa/drivers/dri/r300/radeon_lock.c
index 430083ef010..5f90f5f32e5 100644
--- a/src/mesa/drivers/dri/r300/radeon_lock.c
+++ b/src/mesa/drivers/dri/r300/radeon_lock.c
@@ -41,6 +41,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "r200_state.h"
#include "radeon_ioctl.h"
#include "radeon_state.h"
+#include "r300_context.h"
#include "framebuffer.h"
@@ -109,6 +110,8 @@ static void r200RegainedLock(r200ContextPtr r200)
static void r300RegainedLock(radeonContextPtr radeon)
{
__DRIdrawablePrivate *dPriv = radeon->dri.drawable;
+ int i;
+ r300ContextPtr r300 = (r300ContextPtr)radeon;
if (radeon->lastStamp != dPriv->lastStamp) {
_mesa_resize_framebuffer(radeon->glCtx,
@@ -126,11 +129,9 @@ static void r300RegainedLock(radeonContextPtr radeon)
radeon->lastStamp = dPriv->lastStamp;
}
-#if R200_MERGED
- for (i = 0; i < r200->nr_heaps; i++) {
- DRI_AGE_TEXTURES(r200->texture_heaps[i]);
+ for (i = 0; i < r300->nr_heaps; i++) {
+ DRI_AGE_TEXTURES(r300->texture_heaps[i]);
}
-#endif
}
/* Update the hardware state. This is called if another context has