2021-03-30 08:36:18 +00:00
|
|
|
/*
|
|
|
|
$info$
|
|
|
|
tags: thunklibs|EGL
|
|
|
|
desc: Depends on glXGetProcAddress thunk
|
|
|
|
$end_info$
|
|
|
|
*/
|
|
|
|
|
2020-08-08 08:35:13 +00:00
|
|
|
#include <GL/glx.h>
|
|
|
|
#include <EGL/egl.h>
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <cstring>
|
|
|
|
|
2020-08-25 07:55:08 +00:00
|
|
|
#include "common/Guest.h"
|
2020-08-08 08:35:13 +00:00
|
|
|
|
2022-09-05 13:03:49 +00:00
|
|
|
#include "thunkgen_guest_libEGL.inl"
|
2020-08-08 08:35:13 +00:00
|
|
|
|
|
|
|
typedef void voidFunc();
|
|
|
|
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
voidFunc* eglGetProcAddress(const char* procname) {
|
|
|
|
// TODO: Fix this HACK
|
|
|
|
return glXGetProcAddress((const GLubyte*)procname);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-05 13:03:49 +00:00
|
|
|
LOAD_LIB(libEGL)
|