Skip to content

Commit 66e76e4

Browse files
committed
(orbis) Drop dead orbis_ctx_get_proc_address wrapper
The wrapper's only added value over egl_get_proc_address was a fallback to sceKernelDlsym(s_piglet_module, ...). The s_piglet_module global is declared in platform_orbis.c but never assigned anywhere in the tree, so the fallback was never reachable. The vtable already calls egl_get_proc_address directly (since 34662e8), making the wrapper itself unused. Drop the wrapper and its dead extern.
1 parent 825dffe commit 66e76e4

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

gfx/drivers_context/orbis_ctx.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ static enum gfx_ctx_api ctx_orbis_api = GFX_CTX_OPENGL_API;
7474

7575
/* TODO/FIXME - global reference */
7676
extern bool platform_orbis_has_focus;
77-
extern SceKernelModule s_piglet_module;
7877

7978
void orbis_ctx_destroy(void *data)
8079
{
@@ -289,17 +288,6 @@ static void orbis_ctx_swap_buffers(void *data)
289288
#endif
290289
}
291290

292-
static gfx_ctx_proc_t orbis_ctx_get_proc_address(const char *symbol)
293-
{
294-
gfx_ctx_proc_t ptr_sym = NULL;
295-
#ifdef HAVE_EGL
296-
ptr_sym = egl_get_proc_address(symbol);
297-
#endif
298-
if (!ptr_sym && s_piglet_module > 0)
299-
sceKernelDlsym(s_piglet_module, symbol, (void **)&ptr_sym);
300-
return ptr_sym;
301-
}
302-
303291
static void orbis_ctx_bind_hw_render(void *data, bool enable)
304292
{
305293
#ifdef HAVE_EGL

0 commit comments

Comments
 (0)