From 69870b6d24ae5d1bc063c9b1ca5368046204819d Mon Sep 17 00:00:00 2001 From: hzqst <113660872@qq.com> Date: Sun, 14 Jan 2024 14:26:08 +0800 Subject: [PATCH] 1 --- Plugins/Renderer/gl_hooks.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/Plugins/Renderer/gl_hooks.cpp b/Plugins/Renderer/gl_hooks.cpp index c2da2736..7e636c84 100644 --- a/Plugins/Renderer/gl_hooks.cpp +++ b/Plugins/Renderer/gl_hooks.cpp @@ -7490,7 +7490,7 @@ void R_UninstallHooksForEngineDLL(void) Uninstall_Hook(triapi_RenderMode); Uninstall_Hook(Draw_MiptexTexture); Uninstall_Hook(BuildGammaTable); - //Uninstall_Hook(R_CullBox); + Uninstall_Hook(R_CullBox); if (gPrivateFuncs.SDL_GL_SetAttribute) { @@ -7538,17 +7538,9 @@ void R_InstallHooks(void) Install_InlineHook(triapi_RenderMode); Install_InlineHook(Draw_MiptexTexture); Install_InlineHook(BuildGammaTable); - //Install_InlineHook(R_CullBox); + Install_InlineHook(R_CullBox); //OpenGL4.2 was forced by HL25 engine which might ruin the renderer features. - /* - if ( a1 ) - { - SDL_GL_SetAttribute(17, 4); - SDL_GL_SetAttribute(18, 2); - result = SDL_GL_SetAttribute(21, 2); - } - */ if (gPrivateFuncs.SDL_GL_SetAttribute) { Install_InlineHook(SDL_GL_SetAttribute);