FEX/ThunkLibs/libEGL/libEGL_Guest.cpp
Paulo Matos 2b4ec88dae Whole-tree reformat
This follows discussions from #3413.
Followup commits add clang-format file, script and blame ignore lists.
2024-04-12 16:26:02 +02:00

29 lines
425 B
C++

/*
$info$
tags: thunklibs|EGL
desc: Depends on glXGetProcAddress thunk
$end_info$
*/
#include <GL/glx.h>
#include <EGL/egl.h>
#include <stdio.h>
#include <cstring>
#include "common/Guest.h"
#include "thunkgen_guest_libEGL.inl"
typedef void voidFunc();
extern "C" {
voidFunc* eglGetProcAddress(const char* procname) {
// TODO: Fix this HACK
return glXGetProcAddress((const GLubyte*)procname);
}
}
LOAD_LIB(libEGL)