engine: platform: sdl2: add vrtld.h include for GL_GetProcAddress implementation

This commit is contained in:
Alibek Omarov
2025-10-08 05:24:59 +05:00
parent 8022c4826f
commit 0c08f113ea
+5 -3
View File
@@ -22,6 +22,10 @@ GNU General Public License for more details.
// include it after because it breaks definitions in net_api.h wtf
#include <SDL_syswm.h>
#if XASH_PSVITA
#include <vrtld.h>
#endif // XASH_PSVITA
static vidmode_t *vidmodes = NULL;
static int num_vidmodes = 0;
static void GL_SetupAttributes( void );
@@ -401,9 +405,7 @@ void *GL_GetProcAddress( const char *name )
#if XASH_PSVITA
// try to find in main module
if( !func )
{
func = dlsym( NULL, name );
}
func = vrtld_dlsym( NULL, name );
#endif
if( !func )