From c1f2f9090bcca309b9aeef7ae57acc280704db81 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 3 Mar 2005 02:05:33 +0000 Subject: [PATCH] change gl_buffer_object's Size field to GLsizeiptrARB type --- src/mesa/main/bufferobj.c | 2 +- src/mesa/main/mtypes.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 3629ffef879..185d841f812 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -310,7 +310,7 @@ _mesa_buffer_get_subdata( GLcontext *ctx, GLenum target, GLintptrARB offset, { (void) ctx; (void) target; - if (bufObj->Data && ((GLuint) (size + offset) <= bufObj->Size)) { + if (bufObj->Data && ((GLsizeiptrARB) (size + offset) <= bufObj->Size)) { _mesa_memcpy( data, (GLubyte *) bufObj->Data + offset, size ); } } diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 999fda7aeee..399cc22f058 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -1471,7 +1471,7 @@ struct gl_buffer_object GLenum Usage; GLenum Access; GLvoid *Pointer; /**< Only valid while buffer is mapped */ - GLuint Size; /**< Size of storage in bytes */ + GLsizeiptrARB Size; /**< Size of storage in bytes */ GLubyte *Data; /**< Location of storage either in RAM or VRAM. */ GLboolean OnCard; /**< Is buffer in VRAM? (hardware drivers) */ }; -- 2.30.2