aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2000-10-24 01:13:58 +0000
committerBrian Paul <[email protected]>2000-10-24 01:13:58 +0000
commit9a4a958a5c45024abeb5ec97419362c05c8b76ac (patch)
tree9c1d2341de3d86772e493c9af0ef07140628aea3 /src
parent6cdf09749c31423b0237c2a4fa493944301b21af (diff)
signal NEW_TEXTURING if there's a Driver.BindTexture() function
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/texobj.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c
index a9248a78f40..5a9b4a1c86c 100644
--- a/src/mesa/main/texobj.c
+++ b/src/mesa/main/texobj.c
@@ -1,4 +1,4 @@
-/* $Id: texobj.c,v 1.27 2000/09/12 21:07:41 brianp Exp $ */
+/* $Id: texobj.c,v 1.28 2000/10/24 01:13:58 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -591,6 +591,8 @@ _mesa_BindTexture( GLenum target, GLuint texName )
/* Pass BindTexture call to device driver */
if (ctx->Driver.BindTexture) {
(*ctx->Driver.BindTexture)( ctx, target, newTexObj );
+ /* Make sure the Driver.UpdateState() function gets called! */
+ ctx->NewState |= NEW_TEXTURING;
}
if (oldTexObj->Name > 0) {