summaryrefslogtreecommitdiff
path: root/tests/glfw.c
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 /tests/glfw.c
parent7431f7cb01c6f3ac912bfad3cbb304b27eaa8022 (diff)
Adds unit test for glfwGetProcAddress.
Diffstat (limited to 'tests/glfw.c')
-rw-r--r--tests/glfw.c4
1 files changed, 4 insertions, 0 deletions
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");