SDL: SDL_EGL_GetProcAddress: remove unnecessary underscore-prepended search.

From 20beed302923ad20af1d91d1bf889aed8b1a0139 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Tue, 25 Oct 2022 14:56:32 +0300
Subject: [PATCH] SDL_EGL_GetProcAddress: remove unnecessary
 underscore-prepended search.

Closes https://github.com/libsdl-org/SDL/issues/6236.
---
 src/video/SDL_egl.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/src/video/SDL_egl.c b/src/video/SDL_egl.c
index c768b9914829..28d02b132c62 100644
--- a/src/video/SDL_egl.c
+++ b/src/video/SDL_egl.c
@@ -256,23 +256,13 @@ SDL_EGL_GetProcAddress(_THIS, const char *proc)
     #if !defined(__EMSCRIPTEN__) && !defined(SDL_VIDEO_DRIVER_VITA)  /* LoadFunction isn't needed on Emscripten and will call dlsym(), causing other problems. */
     /* Try SDL_LoadFunction() first for EGL <= 1.4, or as a fallback for >= 1.5. */
     if (!retval) {
-        static char procname[64];
         retval = SDL_LoadFunction(_this->egl_data->opengl_dll_handle, proc);
-        /* just in case you need an underscore prepended... */
-        if (!retval && (SDL_strlen(proc) < (sizeof (procname) - 1))) {
-            procname[0] = '_';
-            SDL_strlcpy(procname + 1, proc, sizeof (procname) - 1);
-            retval = SDL_LoadFunction(_this->egl_data->opengl_dll_handle, procname);
-        }
     }
     #endif
 
     /* Try eglGetProcAddress if we're on <= 1.4 and still searching... */
     if (!retval && !is_egl_15_or_later && _this->egl_data->eglGetProcAddress) {
         retval = _this->egl_data->eglGetProcAddress(proc);
-        if (retval) {
-            return retval;
-        }
     }
 
     return retval;