Re: [PATCH 3/4] APPLE_object_purgeable: core

2009-11-18 Thread Brian Paul
Ian Romanick wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Chris Wilson wrote: > >> diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c >> index 52c4995..08633a9 100644 >> --- a/src/mesa/main/bufferobj.c >> +++ b/src/mesa/main/bufferobj.c >> @@ -37,6 +37,8 @@ >> #in

Re: [PATCH 3/4] APPLE_object_purgeable: core

2009-11-18 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Wilson wrote: > diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c > index 52c4995..08633a9 100644 > --- a/src/mesa/main/bufferobj.c > +++ b/src/mesa/main/bufferobj.c > @@ -37,6 +37,8 @@ > #include "image.h" > #include "context

RE: [PATCH 3/4] APPLE_object_purgeable: core

2009-11-12 Thread Brian Paul
One minor thing here: +void GLAPIENTRY +_mesa_GetObjectParameterivAPPLE(GLenum objectType, GLuint name, GLenum pname, GLint* params) +{ + GET_CURRENT_CONTEXT(ctx); + struct gl_buffer_object *bufObj; + + switch (objectType) { + case GL_TEXTURE: + case GL_BUFFER_OBJECT_APPLE: + case G