[Video] Rename grBufferSwap to gfxBufferSwap
This commit is contained in:
parent
6a0d221302
commit
1fa4290605
|
@ -362,7 +362,7 @@ void DisplayLoadProgress(const wchar_t *format, ...)
|
|||
int len = minval((int)strlen(buf) * 8, 1024);
|
||||
x = (1024 - len) / 2.0f;
|
||||
output(x, 360, 1, buf);
|
||||
grBufferSwap(0);
|
||||
gfxBufferSwap(0);
|
||||
gfxColorMask(FXTRUE, FXTRUE);
|
||||
gfxBufferClear(0, 0, 0xFFFF);
|
||||
}
|
||||
|
@ -553,7 +553,7 @@ int InitGfx()
|
|||
gfxColorMask(FXTRUE, FXTRUE);
|
||||
gfxDepthMask(FXTRUE);
|
||||
gfxBufferClear(0, 0, 0xFFFF);
|
||||
grBufferSwap(0);
|
||||
gfxBufferSwap(0);
|
||||
gfxBufferClear(0, 0, 0xFFFF);
|
||||
gfxDepthMask(FXFALSE);
|
||||
grTexFilterMode(0, GR_TEXTUREFILTER_BILINEAR, GR_TEXTUREFILTER_BILINEAR);
|
||||
|
@ -1409,7 +1409,7 @@ void newSwapBuffers()
|
|||
gfxAuxBufferExt(GR_BUFFER_AUXBUFFER);
|
||||
}
|
||||
WriteTrace(TraceGlide64, TraceDebug, "BUFFER SWAPPED");
|
||||
grBufferSwap(g_settings->vsync());
|
||||
gfxBufferSwap(g_settings->vsync());
|
||||
if (*gfx.VI_STATUS_REG & 0x08) //gamma correction is used
|
||||
{
|
||||
if (!voodoo.gamma_correction)
|
||||
|
|
|
@ -1359,9 +1359,7 @@ void gfxBufferClear(GrColor_t color, gfxAlpha_t alpha, FxU32 depth)
|
|||
buffer_cleared = 1;
|
||||
}
|
||||
|
||||
// #include <unistd.h>
|
||||
FX_ENTRY void FX_CALL
|
||||
grBufferSwap(FxU32 swap_interval)
|
||||
void gfxBufferSwap(FxU32 swap_interval)
|
||||
{
|
||||
// GLuint program;
|
||||
|
||||
|
|
|
@ -1631,9 +1631,7 @@ void gfxBufferClear(GrColor_t color, gfxAlpha_t alpha, FxU32 depth)
|
|||
grDisplayGLError("gfxBufferClear");
|
||||
}
|
||||
|
||||
// #include <unistd.h>
|
||||
FX_ENTRY void FX_CALL
|
||||
grBufferSwap(FxU32 swap_interval)
|
||||
void gfxBufferSwap(FxU32 swap_interval)
|
||||
{
|
||||
int i;
|
||||
WriteTrace(TraceGlitch, TraceDebug, "swap_interval: %d", swap_interval);
|
||||
|
|
|
@ -58,6 +58,7 @@ FxU32 gfxGet(FxU32 pname, FxU32 plength, FxI32 *params);
|
|||
void gfxFramebufferCopyExt(int x, int y, int w, int h, int from, int to, int mode);
|
||||
void gfxRenderBuffer(GrBuffer_t buffer);
|
||||
void gfxBufferClear(GrColor_t color, gfxAlpha_t alpha, FxU32 depth);
|
||||
void gfxBufferSwap(FxU32 swap_interval);
|
||||
|
||||
extern uint32_t nbTextureUnits;
|
||||
extern uint32_t g_scr_res_x, g_scr_res_y, g_res_x, g_res_y;
|
||||
|
|
Loading…
Reference in New Issue