aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Blanc <guillaumeblanc.sc@gmail.com>2014-06-06 13:26:07 +0200
committerGuillaume Blanc <guillaumeblanc.sc@gmail.com>2014-06-06 13:26:07 +0200
commit076d88d5c28cb65300ed883743e9c444c89c382f (patch)
treedc949a7536a51635e24d2d81c82cbc8d497f630d
parent7431f7cb01c6f3ac912bfad3cbb304b27eaa8022 (diff)
Adds unit test for glfwGetProcAddress.
-rw-r--r--src/deps_info.json2
-rw-r--r--tests/glfw.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/deps_info.json b/src/deps_info.json
index e0983064..769a21b5 100644
--- a/src/deps_info.json
+++ b/src/deps_info.json
@@ -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"]
}
diff --git a/tests/glfw.c b/tests/glfw.c
index 79199d9a..cbdc81fe 100644
--- a/tests/glfw.c
+++ b/tests/glfw.c
@@ -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");