summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-10-24 01:14:16 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-10-24 01:14:16 +0000
commite3650179c633ae89b34d5676e245aba332564f70 (patch)
tree391f67ae81eca25a382a77de2ba684e1d60f87e9
parentc089afb55ba7e01e0ad2b3c180d709e0e67bde36 (diff)
signal NEW_TEXTURING if there's a Driver.BindTexture() function
-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 f528b4ae448..0adee5d8899 100644
--- a/src/mesa/main/texobj.c
+++ b/src/mesa/main/texobj.c
@@ -1,4 +1,4 @@
-/* $Id: texobj.c,v 1.23.4.4 2000/09/12 21:08:11 brianp Exp $ */
+/* $Id: texobj.c,v 1.23.4.5 2000/10/24 01:14:16 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) {