diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2006-03-29 04:47:34 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2006-03-29 04:47:34 +0000 |
commit | 2b430ef56a5a1730843f3f056dfaa9ef9a0901bd (patch) | |
tree | e79da4157a620bec4d69b155cda91bda194901de | |
parent | b7a5a9db88ebdff2283ea4a8ea2c8bfe99060f49 (diff) |
a few new assertions
-rw-r--r-- | src/mesa/main/texformat_tmp.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/texformat_tmp.h b/src/mesa/main/texformat_tmp.h index f8445275d8..a6e0e02ee8 100644 --- a/src/mesa/main/texformat_tmp.h +++ b/src/mesa/main/texformat_tmp.h @@ -1224,6 +1224,9 @@ static void FETCH(f_z24_s8)( const struct gl_texture_image *texImage, const GLuint *src = TEXEL_ADDR(GLuint, texImage, i, j, k, 1); const GLfloat scale = 1.0F / (GLfloat) 0xffffff; texel[0] = ((*src) >> 8) * scale; + ASSERT(texImage->TexFormat->MesaFormat == MESA_FORMAT_Z24_S8); + ASSERT(texel[0] >= 0.0F); + ASSERT(texel[0] <= 1.0F); } #if DIM == 3 |