Initial commit - some engine bugs stopping compiling
This commit is contained in:
24
third-party/glad/test/c/compile/gles2/default/003/test.c
vendored
Normal file
24
third-party/glad/test/c/compile/gles2/default/003/test.c
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Emscripten GLES2 + EGL header only.
|
||||
* Related Issues: #387
|
||||
*
|
||||
* GLAD: $GLAD --out-path=$tmp --api="egl,gles2" c --loader --header-only
|
||||
* COMPILE: $GCC $test -o $tmp/test -I$tmp/include -ldl
|
||||
* RUN: $tmp/test
|
||||
*/
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#define GLAD_GLES2_IMPLEMENTATION
|
||||
#define GLAD_PLATFORM_EMSCRIPTEN 1
|
||||
#include <glad/egl.h> /* egl before gles2 */
|
||||
#include <glad/gles2.h>
|
||||
|
||||
__eglMustCastToProperFunctionPointerType emscripten_GetProcAddress(const char *name) {
|
||||
GLAD_UNUSED(name);
|
||||
return GLAD_GNUC_EXTENSION (__eglMustCastToProperFunctionPointerType) NULL;
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user