mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 19:58:09 +02:00
intel: Drop doubly irrelevant code in intelReadBuffers.
First, FBO read/draw == NULL validation happens in mesa core not intelReadBuffers -> intel_draw_buffers. Second, that condition is no longer tested for in our driver since ARB_ES2_compatibility was added. Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
6d4b974e89
commit
c095335fa5
1 changed files with 0 additions and 12 deletions
|
|
@ -308,18 +308,6 @@ intelReadBuffer(struct gl_context * ctx, GLenum mode)
|
|||
if (!was_front_buffer_reading && intel->is_front_buffer_reading)
|
||||
dri2InvalidateDrawable(intel->driContext->driReadablePriv);
|
||||
}
|
||||
|
||||
if (ctx->ReadBuffer == ctx->DrawBuffer) {
|
||||
/* This will update FBO completeness status.
|
||||
* A framebuffer will be incomplete if the GL_READ_BUFFER setting
|
||||
* refers to a missing renderbuffer. Calling glReadBuffer can set
|
||||
* that straight and can make the drawing buffer complete.
|
||||
*/
|
||||
intel_draw_buffer(ctx, ctx->DrawBuffer);
|
||||
}
|
||||
/* Generally, functions which read pixels (glReadPixels, glCopyPixels, etc)
|
||||
* reference ctx->ReadBuffer and do appropriate state checks.
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue