summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/array_cache/ac_import.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mesa/array_cache/ac_import.c b/src/mesa/array_cache/ac_import.c
index 0c66084f919..416b2e793c9 100644
--- a/src/mesa/array_cache/ac_import.c
+++ b/src/mesa/array_cache/ac_import.c
@@ -511,7 +511,7 @@ _ac_import_texcoord( GLcontext *ctx,
/* Is the request impossible?
*/
if (reqsize != 0 && ac->Raw.TexCoord[unit].Size > (GLint) reqsize)
- return 0;
+ return NULL;
/* Do we need to pull in a copy of the client data:
*/
@@ -548,7 +548,7 @@ _ac_import_vertex( GLcontext *ctx,
/* Is the request impossible?
*/
if (reqsize != 0 && ac->Raw.Vertex.Size > (GLint) reqsize)
- return 0;
+ return NULL;
/* Do we need to pull in a copy of the client data:
*/
@@ -616,7 +616,7 @@ _ac_import_color( GLcontext *ctx,
/* Is the request impossible?
*/
if (reqsize != 0 && ac->Raw.Color.Size > (GLint) reqsize) {
- return 0;
+ return NULL;
}
/* Do we need to pull in a copy of the client data:
@@ -687,7 +687,7 @@ _ac_import_secondarycolor( GLcontext *ctx,
/* Is the request impossible?
*/
if (reqsize != 0 && ac->Raw.SecondaryColor.Size > (GLint) reqsize)
- return 0;
+ return NULL;
/* Do we need to pull in a copy of the client data:
*/
@@ -866,10 +866,10 @@ _ac_import_elements( GLcontext *ctx,
switch (new_type) {
case GL_UNSIGNED_BYTE:
ASSERT(0);
- return 0;
+ return NULL;
case GL_UNSIGNED_SHORT:
ASSERT(0);
- return 0;
+ return NULL;
case GL_UNSIGNED_INT: {
GLuint *out = (GLuint *)ac->Elts;
GLuint i;
@@ -898,5 +898,5 @@ _ac_import_elements( GLcontext *ctx,
break;
}
- return 0;
+ return NULL;
}