diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index 173e43c..32f3552 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -1715,6 +1715,7 @@ _mesa_BindTexture( GLenum target, GLuint texName ) if (texName == 0) { /* Use a default texture object */ newTexObj = ctx->Shared->DefaultTex[targetIndex]; + ctx->Shared->DefaultTex[targetIndex]->TargetIndex = targetIndex; } else { /* non-default texture object */