-/* $Id: texobj.c,v 1.25 2000/08/02 20:16:03 brianp Exp $ */
+/* $Id: texobj.c,v 1.26 2000/08/03 14:03:17 brianp Exp $ */
/*
* Mesa 3-D graphics library
GLint i;
ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx, "glGenTextures");
- if (n<0) {
+ if (n < 0) {
gl_error( ctx, GL_INVALID_VALUE, "glGenTextures" );
return;
}
+ if (!texName)
+ return;
/*
* This must be atomic (generation and allocation of texture IDs)
ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx, "glDeleteTextures");
+ if (!texName)
+ return;
+
for (i=0;i<n;i++) {
struct gl_texture_object *t;
if (texName[i]>0) {
return;
}
+ if (!priorities)
+ return;
+
for (i = 0; i < n; i++) {
if (texName[i] > 0) {
struct gl_texture_object *t = (struct gl_texture_object *)
return GL_FALSE;
}
+ if (!texName || !residences)
+ return GL_FALSE;
+
for (i = 0; i < n; i++) {
struct gl_texture_object *t;
if (texName[i] == 0) {