mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 13:38:06 +02:00
simplify intelSwapBuffers()
This commit is contained in:
parent
d083cbb4db
commit
d04938331a
1 changed files with 3 additions and 11 deletions
|
|
@ -239,26 +239,18 @@ intelSwapBuffers(__DRIdrawablePrivate * dPriv)
|
|||
{
|
||||
if (dPriv->driContextPriv && dPriv->driContextPriv->driverPrivate) {
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
struct intel_context *intel;
|
||||
|
||||
if (ctx == NULL)
|
||||
return;
|
||||
|
||||
intel = intel_context(ctx);
|
||||
|
||||
if (ctx->Visual.doubleBufferMode) {
|
||||
GLboolean missed_target;
|
||||
struct intel_framebuffer *intel_fb = dPriv->driverPrivate;
|
||||
int64_t ust;
|
||||
struct pipe_surface *back_surf
|
||||
= get_color_surface(intel_fb, BUFFER_BACK_LEFT);
|
||||
|
||||
_mesa_notifySwapBuffers(ctx); /* flush pending rendering comands */
|
||||
|
||||
{
|
||||
struct pipe_surface *back_surf
|
||||
= get_color_surface(intel_fb, BUFFER_BACK_LEFT);
|
||||
intelDisplayBuffer(dPriv, back_surf, NULL);
|
||||
}
|
||||
|
||||
intelDisplayBuffer(dPriv, back_surf, NULL);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue