diff options
author | Kendall Bennett <[email protected]> | 1999-11-12 04:56:54 +0000 |
---|---|---|
committer | Kendall Bennett <[email protected]> | 1999-11-12 04:56:54 +0000 |
commit | e312cf26ea1ae0445926df20c43e80363d453cb5 (patch) | |
tree | 6e13b3e4f76081cc0edc61e5941b1b140c771e3a /src/mesa/main/texobj.c | |
parent | b95d252c347e14825cd61b28223040cfc5d0e7de (diff) |
. Updates to get X86, MXX and 3DNow assembler code working with Watcom
C++ and NASM. This includes lots of _ASMAPI macros to ensure that
assembler functions are prototyped as __cdecl, as Watcom C++ uses
register calling conventions by default.
. Misc fixes to files to remove warnings generated by Watcom C++.
Diffstat (limited to 'src/mesa/main/texobj.c')
-rw-r--r-- | src/mesa/main/texobj.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index fae67d4fc7c..0abe6036eb1 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -1,4 +1,4 @@ -/* $Id: texobj.c,v 1.8 1999/11/11 01:22:28 brianp Exp $ */ +/* $Id: texobj.c,v 1.9 1999/11/12 04:57:04 kendallb Exp $ */ /* * Mesa 3-D graphics library @@ -422,7 +422,7 @@ _mesa_BindTexture( GLenum target, GLuint texName ) dim = (GLuint) (target - GL_TEXTURE_1D); - if (dim < 0 || dim > 2) { + if (dim > 2) { gl_error( ctx, GL_INVALID_ENUM, "glBindTexture" ); return; } |