Drop GLcontext typedef and use struct gl_context instead
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
* failure.
|
||||
*/
|
||||
struct gl_shared_state *
|
||||
_mesa_alloc_shared_state(GLcontext *ctx)
|
||||
_mesa_alloc_shared_state(struct gl_context *ctx)
|
||||
{
|
||||
struct gl_shared_state *shared;
|
||||
GLuint i;
|
||||
@@ -133,7 +133,7 @@ static void
|
||||
delete_displaylist_cb(GLuint id, void *data, void *userData)
|
||||
{
|
||||
struct gl_display_list *list = (struct gl_display_list *) data;
|
||||
GLcontext *ctx = (GLcontext *) userData;
|
||||
struct gl_context *ctx = (struct gl_context *) userData;
|
||||
_mesa_delete_list(ctx, list);
|
||||
}
|
||||
|
||||
@@ -145,7 +145,7 @@ static void
|
||||
delete_texture_cb(GLuint id, void *data, void *userData)
|
||||
{
|
||||
struct gl_texture_object *texObj = (struct gl_texture_object *) data;
|
||||
GLcontext *ctx = (GLcontext *) userData;
|
||||
struct gl_context *ctx = (struct gl_context *) userData;
|
||||
ctx->Driver.DeleteTexture(ctx, texObj);
|
||||
}
|
||||
|
||||
@@ -157,7 +157,7 @@ static void
|
||||
delete_program_cb(GLuint id, void *data, void *userData)
|
||||
{
|
||||
struct gl_program *prog = (struct gl_program *) data;
|
||||
GLcontext *ctx = (GLcontext *) userData;
|
||||
struct gl_context *ctx = (struct gl_context *) userData;
|
||||
if(prog != &_mesa_DummyProgram) {
|
||||
ASSERT(prog->RefCount == 1); /* should only be referenced by hash table */
|
||||
prog->RefCount = 0; /* now going away */
|
||||
@@ -175,7 +175,7 @@ static void
|
||||
delete_fragshader_cb(GLuint id, void *data, void *userData)
|
||||
{
|
||||
struct ati_fragment_shader *shader = (struct ati_fragment_shader *) data;
|
||||
GLcontext *ctx = (GLcontext *) userData;
|
||||
struct gl_context *ctx = (struct gl_context *) userData;
|
||||
_mesa_delete_ati_fragment_shader(ctx, shader);
|
||||
}
|
||||
#endif
|
||||
@@ -188,7 +188,7 @@ static void
|
||||
delete_bufferobj_cb(GLuint id, void *data, void *userData)
|
||||
{
|
||||
struct gl_buffer_object *bufObj = (struct gl_buffer_object *) data;
|
||||
GLcontext *ctx = (GLcontext *) userData;
|
||||
struct gl_context *ctx = (struct gl_context *) userData;
|
||||
if (_mesa_bufferobj_mapped(bufObj)) {
|
||||
ctx->Driver.UnmapBuffer(ctx, 0, bufObj);
|
||||
bufObj->Pointer = NULL;
|
||||
@@ -204,7 +204,7 @@ delete_bufferobj_cb(GLuint id, void *data, void *userData)
|
||||
static void
|
||||
free_shader_program_data_cb(GLuint id, void *data, void *userData)
|
||||
{
|
||||
GLcontext *ctx = (GLcontext *) userData;
|
||||
struct gl_context *ctx = (struct gl_context *) userData;
|
||||
struct gl_shader_program *shProg = (struct gl_shader_program *) data;
|
||||
|
||||
if (shProg->Type == GL_SHADER_PROGRAM_MESA) {
|
||||
@@ -220,7 +220,7 @@ free_shader_program_data_cb(GLuint id, void *data, void *userData)
|
||||
static void
|
||||
delete_shader_cb(GLuint id, void *data, void *userData)
|
||||
{
|
||||
GLcontext *ctx = (GLcontext *) userData;
|
||||
struct gl_context *ctx = (struct gl_context *) userData;
|
||||
struct gl_shader *sh = (struct gl_shader *) data;
|
||||
if (sh->Type == GL_FRAGMENT_SHADER || sh->Type == GL_VERTEX_SHADER) {
|
||||
ctx->Driver.DeleteShader(ctx, sh);
|
||||
@@ -280,7 +280,7 @@ delete_renderbuffer_cb(GLuint id, void *data, void *userData)
|
||||
* \sa alloc_shared_state().
|
||||
*/
|
||||
static void
|
||||
free_shared_state(GLcontext *ctx, struct gl_shared_state *shared)
|
||||
free_shared_state(struct gl_context *ctx, struct gl_shared_state *shared)
|
||||
{
|
||||
GLuint i;
|
||||
|
||||
@@ -373,7 +373,7 @@ free_shared_state(GLcontext *ctx, struct gl_shared_state *shared)
|
||||
* \sa free_shared_state().
|
||||
*/
|
||||
void
|
||||
_mesa_release_shared_state(GLcontext *ctx, struct gl_shared_state *shared)
|
||||
_mesa_release_shared_state(struct gl_context *ctx, struct gl_shared_state *shared)
|
||||
{
|
||||
GLint RefCount;
|
||||
|
||||
|
Reference in New Issue
Block a user