From c8174a3ee97206e4ce906e34f15bb256824d2802 Mon Sep 17 00:00:00 2001 From: zilmar Date: Thu, 20 Jul 2017 17:36:17 +1000 Subject: [PATCH] [Video] Rename grEnable to gfxEnable --- Source/Project64-video/Main.cpp | 2 +- Source/Project64-video/Renderer/OGLESglitchmain.cpp | 3 +-- Source/Project64-video/Renderer/OGLglitchmain.cpp | 3 +-- Source/Project64-video/Renderer/Renderer.h | 1 + 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Source/Project64-video/Main.cpp b/Source/Project64-video/Main.cpp index 8f8ad9eb8..ffb0cc2be 100644 --- a/Source/Project64-video/Main.cpp +++ b/Source/Project64-video/Main.cpp @@ -473,7 +473,7 @@ int InitGfx() // 2Mb Texture boundary voodoo.has_2mb_tex_boundary = (SST_type < GR_SSTTYPE_Banshee) && !evoodoo; // we get better texture cache hits with UMA on - grEnable(GR_TEXTURE_UMA_EXT); + gfxEnable(GR_TEXTURE_UMA_EXT); WriteTrace(TraceGlide64, TraceDebug, "Using TEXUMA extension"); ChangeSize(); diff --git a/Source/Project64-video/Renderer/OGLESglitchmain.cpp b/Source/Project64-video/Renderer/OGLESglitchmain.cpp index 1ead97756..1407dd262 100644 --- a/Source/Project64-video/Renderer/OGLESglitchmain.cpp +++ b/Source/Project64-video/Renderer/OGLESglitchmain.cpp @@ -1667,8 +1667,7 @@ void grConfigWrapperExt(FxI32 vram, FxBool fbo, FxBool aniso) config.anisofilter = aniso; } -FX_ENTRY void FX_CALL -grEnable(GrEnableMode_t mode) +void gfxEnable(GrEnableMode_t mode) { WriteTrace(TraceGlitch, TraceDebug, "-"); if (mode == GR_TEXTURE_UMA_EXT) diff --git a/Source/Project64-video/Renderer/OGLglitchmain.cpp b/Source/Project64-video/Renderer/OGLglitchmain.cpp index aedca8fac..bcec7bdeb 100644 --- a/Source/Project64-video/Renderer/OGLglitchmain.cpp +++ b/Source/Project64-video/Renderer/OGLglitchmain.cpp @@ -1932,8 +1932,7 @@ void grConfigWrapperExt(FxI32 vram, FxBool fbo, FxBool aniso) config.anisofilter = aniso; } -FX_ENTRY void FX_CALL -grEnable(GrEnableMode_t mode) +void gfxEnable(GrEnableMode_t mode) { WriteTrace(TraceGlitch, TraceDebug, "-"); if (mode == GR_TEXTURE_UMA_EXT) diff --git a/Source/Project64-video/Renderer/Renderer.h b/Source/Project64-video/Renderer/Renderer.h index 5d00eca68..37b47119b 100644 --- a/Source/Project64-video/Renderer/Renderer.h +++ b/Source/Project64-video/Renderer/Renderer.h @@ -64,6 +64,7 @@ FxBool gfxLfbUnlock(GrLock_t type, GrBuffer_t buffer); FxBool gfxLfbReadRegion(GrBuffer_t src_buffer, FxU32 src_x, FxU32 src_y, FxU32 src_width, FxU32 src_height, FxU32 dst_stride, void *dst_data); FxBool gfxLfbWriteRegion(GrBuffer_t dst_buffer, FxU32 dst_x, FxU32 dst_y, GrLfbSrcFmt_t src_format, FxU32 src_width, FxU32 src_height, FxBool pixelPipeline, FxI32 src_stride, void *src_data); FxU32 gfxTexCalcMemRequired(GrLOD_t lodmin, GrLOD_t lodmax, GrAspectRatio_t aspect, GrTextureFormat_t fmt); +void gfxEnable(GrEnableMode_t mode); extern uint32_t nbTextureUnits; extern uint32_t g_scr_res_x, g_scr_res_y, g_res_x, g_res_y;