signal NEW_TEXTURING if there's a Driver.BindTexture() function

This commit is contained in:
Brian Paul 2000-10-24 01:13:58 +00:00
parent 6cdf09749c
commit 9a4a958a5c

View file

@ -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) {