From 781e4e259d81bb569f79804e8f4811592f39c6d5 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 21 Jun 2011 17:30:07 +0000 Subject: [PATCH] Merged from svn/trunk changeset r12593, Removed assert() that always evaluated to true. --- src/osg/glu/libutil/mipmap.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/osg/glu/libutil/mipmap.cpp b/src/osg/glu/libutil/mipmap.cpp index 28a219e99..d705d0e04 100644 --- a/src/osg/glu/libutil/mipmap.cpp +++ b/src/osg/glu/libutil/mipmap.cpp @@ -8563,8 +8563,6 @@ static GLdouble extractUbyte(int isSwap, const void *ubyte) { isSwap= isSwap; /* turn off warnings */ - assert(*((const GLubyte *)ubyte) <= 255); - return (GLdouble)(*((const GLubyte *)ubyte)); } /* extractUbyte() */ @@ -8579,8 +8577,6 @@ static GLdouble extractSbyte(int isSwap, const void *sbyte) { isSwap= isSwap; /* turn off warnings */ - assert(*((const GLbyte *)sbyte) <= 127); - return (GLdouble)(*((const GLbyte *)sbyte)); } /* extractSbyte() */ @@ -8600,8 +8596,6 @@ static GLdouble extractUshort(int isSwap, const void *uitem) ushort= *(const GLushort *)uitem; } - assert(ushort <= 65535); - return (GLdouble)ushort; } /* extractUshort() */ @@ -8623,8 +8617,6 @@ static GLdouble extractSshort(int isSwap, const void *sitem) sshort= *(const GLshort *)sitem; } - assert(sshort <= 32767); - return (GLdouble)sshort; } /* extractSshort() */