summaryrefslogtreecommitdiffstats
path: root/src/glut/directfb/ext.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glut/directfb/ext.c')
-rw-r--r--src/glut/directfb/ext.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/glut/directfb/ext.c b/src/glut/directfb/ext.c
index d7338ce5f7b..e37ecf5afad 100644
--- a/src/glut/directfb/ext.c
+++ b/src/glut/directfb/ext.c
@@ -156,6 +156,13 @@ glutGetProcAddress( const char *name )
return glut_functions[i].address;
}
+#if DIRECTFBGL_INTERFACE_VERSION >= 1
+ if (g_current) {
+ void *address = NULL;
+ g_current->gl->GetProcAddress( g_current->gl, name, &address );
+ return address;
+ }
+#endif
return NULL;
}