mesa: get rid of gl_texture_object::_BorderChan
authorBrian Paul <brianp@vmware.com>
Thu, 12 Mar 2009 01:09:19 +0000 (19:09 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 2 Apr 2009 02:24:23 +0000 (20:24 -0600)
src/mesa/main/mtypes.h
src/mesa/main/texparam.c

index c1f06885ec454d9b2dd72167e030a606c4d596f9..10f0d067e330511c384465e481e05d9409cfee63 100644 (file)
@@ -1296,7 +1296,6 @@ struct gl_texture_object
    GLenum Target;               /**< GL_TEXTURE_1D, GL_TEXTURE_2D, etc. */
    GLfloat Priority;           /**< in [0,1] */
    GLfloat BorderColor[4];     /**< unclamped */
-   GLchan _BorderChan[4];      /**< clamped, as GLchan */
    GLenum WrapS;               /**< S-axis texture image wrap mode */
    GLenum WrapT;               /**< T-axis texture image wrap mode */
    GLenum WrapR;               /**< R-axis texture image wrap mode */
index 50f867e1c1cbb7c40e3033c19b65a06fc8a1941c..15c4aa31216ac3f00844d3b1f2cea994166c14db 100644 (file)
@@ -483,10 +483,6 @@ set_tex_parameterf(GLcontext *ctx,
       texObj->BorderColor[GCOMP] = params[1];
       texObj->BorderColor[BCOMP] = params[2];
       texObj->BorderColor[ACOMP] = params[3];
-      UNCLAMPED_FLOAT_TO_CHAN(texObj->_BorderChan[RCOMP], params[0]);
-      UNCLAMPED_FLOAT_TO_CHAN(texObj->_BorderChan[GCOMP], params[1]);
-      UNCLAMPED_FLOAT_TO_CHAN(texObj->_BorderChan[BCOMP], params[2]);
-      UNCLAMPED_FLOAT_TO_CHAN(texObj->_BorderChan[ACOMP], params[3]);
       return;
 
    default: