make directory name inline with other tests
[AROS.git] / workbench / libs / mesa / src / gallium / state_trackers / arosmesa / glaswapbuffers.c
blob11b31a78123d1a5ec4ff0559d063fd95c70f3bc0
1 /*
2 Copyright 2009-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include "arosmesa_funcs.h"
7 #include "arosmesa_funcs_gallium.h"
8 #include <proto/exec.h>
9 #include <proto/gallium.h>
10 #include <gallium/pipe/p_screen.h>
11 #include <gallium/util/u_inlines.h>
13 /*****************************************************************************
15 NAME */
17 void glASwapBuffers(
19 /* SYNOPSIS */
20 GLAContext ctx)
22 /* FUNCTION
23 Swaps the back with front buffers. MUST BE used to display the effect
24 of rendering onto the target RastPort, since GLA always work in
25 double buffer mode.
27 INPUTS
28 amesa - GL rendering context on which swap is to be performed.
30 RESULT
32 BUGS
34 INTERNALS
36 HISTORY
38 *****************************************************************************/
40 struct arosmesa_context * amesa = (struct arosmesa_context *)ctx;
42 if (amesa->framebuffer->render_resource)
44 /* Flush rendering cache before blitting */
45 amesa->st->flush(amesa->st, ST_FLUSH_FRONT, NULL);
47 BltPipeResourceRastPort(amesa->framebuffer->render_resource, 0, 0,
48 amesa->visible_rp, amesa->left, amesa->top,
49 amesa->framebuffer->width, amesa->framebuffer->height);
52 AROSMesaCheckAndUpdateBufferSize(amesa);