Merged from svn/trunk changeset r12593, Removed assert() that always evaluated to true.

This commit is contained in:
Robert Osfield
2011-06-21 17:30:07 +00:00
parent 46fa819fa1
commit 781e4e259d

View File

@@ -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() */