Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst committed Jan 14, 2024
1 parent 529b7a9 commit 69870b6
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Plugins/Renderer/gl_hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 69870b6

Please sign in to comment.