mesa: Remove the Initialized field from framebuffers.
This existed to tell the core not to call GetBufferSize, except that even if you didn't set it nothing happened because nobody had a GetBufferSize. v2: Remove two more instances of setting the field (from Brian) Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
bab755ad1b
commit
d7165b383d
|
@ -339,8 +339,6 @@ intel_resize_buffers(struct gl_context *ctx, struct gl_framebuffer *fb,
|
|||
|
||||
_mesa_resize_framebuffer(ctx, fb, width, height);
|
||||
|
||||
fb->Initialized = true; /* XXX remove someday */
|
||||
|
||||
if (_mesa_is_user_fbo(fb)) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -85,7 +85,6 @@ void radeonSetCliprects(radeonContextPtr radeon)
|
|||
(draw_rfb->base.Height != drawable->h)) {
|
||||
_mesa_resize_framebuffer(&radeon->glCtx, &draw_rfb->base,
|
||||
drawable->w, drawable->h);
|
||||
draw_rfb->base.Initialized = GL_TRUE;
|
||||
}
|
||||
|
||||
if (drawable != readable) {
|
||||
|
@ -93,7 +92,6 @@ void radeonSetCliprects(radeonContextPtr radeon)
|
|||
(read_rfb->base.Height != readable->h)) {
|
||||
_mesa_resize_framebuffer(&radeon->glCtx, &read_rfb->base,
|
||||
readable->w, readable->h);
|
||||
read_rfb->base.Initialized = GL_TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -635,8 +635,6 @@ radeon_resize_buffers(struct gl_context *ctx, struct gl_framebuffer *fb,
|
|||
|
||||
_mesa_resize_framebuffer(ctx, fb, width, height);
|
||||
|
||||
fb->Initialized = GL_TRUE; /* XXX remove someday */
|
||||
|
||||
if (fb->Name != 0) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -916,7 +916,6 @@ OSMesaMakeCurrent( OSMesaContext osmesa, void *buffer, GLenum type,
|
|||
* osmesa_renderbuffer_storage() function to get called.
|
||||
*/
|
||||
_mesa_resize_framebuffer(&osmesa->mesa, osmesa->gl_buffer, width, height);
|
||||
osmesa->gl_buffer->Initialized = GL_TRUE; /* XXX TEMPORARY? */
|
||||
|
||||
_mesa_make_current( &osmesa->mesa, osmesa->gl_buffer, osmesa->gl_buffer );
|
||||
|
||||
|
|
|
@ -1193,7 +1193,6 @@ xmesa_check_and_update_buffer_size(XMesaContext xmctx, XMesaBuffer drawBuffer)
|
|||
struct gl_context *ctx = xmctx ? &xmctx->mesa : NULL;
|
||||
_mesa_resize_framebuffer(ctx, &(drawBuffer->mesa_buffer), width, height);
|
||||
}
|
||||
drawBuffer->mesa_buffer.Initialized = GL_TRUE; /* XXX TEMPORARY? */
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -2680,8 +2680,6 @@ struct gl_framebuffer
|
|||
*/
|
||||
struct gl_config Visual;
|
||||
|
||||
GLboolean Initialized;
|
||||
|
||||
GLuint Width, Height; /**< size of frame buffer in pixels */
|
||||
|
||||
/** \name Drawing bounds (Intersection of buffer size and scissor box) */
|
||||
|
|
|
@ -431,8 +431,6 @@ st_framebuffer_create(struct st_framebuffer_iface *stfbi)
|
|||
stfb->stamp = 0;
|
||||
st_framebuffer_update_attachments(stfb);
|
||||
|
||||
stfb->Base.Initialized = GL_TRUE;
|
||||
|
||||
return stfb;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue