Adds unit test for glfwGetProcAddress.
This commit is contained in:
Родитель
7431f7cb01
Коммит
076d88d5c2
|
@ -3,7 +3,7 @@
|
|||
"SDL_Init": ["malloc", "free"],
|
||||
"SDL_GL_GetProcAddress": ["emscripten_GetProcAddress"],
|
||||
"eglGetProcAddress": ["emscripten_GetProcAddress"],
|
||||
"glfwGetProcAddress": ["emscripten_GetProcAddress"],
|
||||
"glfwGetProcAddress": ["emscripten_GetProcAddress", "strstr"],
|
||||
"emscripten_GetProcAddress": ["strstr"]
|
||||
}
|
||||
|
||||
|
|
|
@ -376,6 +376,10 @@ void PullInfo(){
|
|||
extension = "GL_EXT_framebuffer_object";
|
||||
printf("'%s' extension is %s.\n", extension, glfwExtensionSupported(extension) ? "supported" : "not supported");
|
||||
|
||||
extension = "glBindBuffer";
|
||||
void* proc_addr = glfwGetProcAddress(extension);
|
||||
printf("'%s' extension proc address is %p.\n", extension, proc_addr);
|
||||
|
||||
printf("Sleeping 1 sec...\n");
|
||||
glfwSleep(1);
|
||||
printf("...Done.\n");
|
||||
|
|
Загрузка…
Ссылка в новой задаче