~marcoil/glproxy/extensions-cleanup

« back to all changes in this revision

Viewing changes to tests/tfp/glx_tfp.c

  • Committer: Marc Ordinas i Llopis
  • Date: 2011-10-19 11:25:49 UTC
  • Revision ID: marc.ordinasillopis@linaro.org-20111019112549-typ1kvne7v0u0214
Removed caching the extensions strings. Ensured that extension names are checked correctly.

Added a new API function to check if an extension is present in both the backend and GL,
glProxyHasExtension.

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
        glProxyGetExtProcAddr("GLX_EXT_texture_from_pixmap", "glXReleaseTexImageEXT");
103
103
 
104
104
   if (!glXBindTexImageEXT_ || !glXReleaseTexImageEXT_) {
105
 
      fprintf(stderr, "glXGetProcAddress failed!\n");
 
105
      fprintf(stderr, "glProxyGetProcAddress failed!\n");
106
106
      exit(1);
107
107
   }
108
108