FEX/ThunkLibs/libEGL/libEGL_Guest.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
425 B
C++
Raw Normal View History

2021-03-30 08:36:18 +00:00
/*
$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)