~marcoil/glcompbench/glproxy-one-exec

« back to all changes in this revision

Viewing changes to src/composite-window-glxpixmap.cc

  • Committer: Marc Ordinas i Llopis
  • Date: 2011-12-05 15:44:29 UTC
  • mfrom: (62.1.3 glproxy)
  • Revision ID: marc.ordinasillopis@linaro.org-20111205154429-7b5bohfv13i6rh2e
Merged previous glproxy port.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include "composite-window-glxpixmap.h"
33
33
#include "log.h"
34
34
 
 
35
extern PFNPROXYBINDTEXIMAGEEXTPROC glXBindTexImageEXT_;
 
36
extern PFNPROXYRELEASETEXIMAGEEXTPROC glXReleaseTexImageEXT_;
 
37
 
35
38
void
36
39
CompositeWindowGLXPixmap::release_tfp()
37
40
{
38
41
    if (glx_pixmap_)
39
42
    {
40
 
        glXReleaseTexImageEXT(xdpy_, glx_pixmap_, GLX_FRONT_LEFT_EXT);
 
43
        glXReleaseTexImageEXT_(xdpy_, glx_pixmap_, GLX_FRONT_LEFT_EXT);
41
44
        glXDestroyPixmap(xdpy_, glx_pixmap_);
42
45
        glx_pixmap_ = 0;
43
46
        glx_pixmap_bound_ = false;
106
109
    glBindTexture(GL_TEXTURE_2D, tex_);
107
110
 
108
111
    if (glx_pixmap_bound_)
109
 
        glXReleaseTexImageEXT(xdpy_, glx_pixmap_, GLX_FRONT_LEFT_EXT);
 
112
        glXReleaseTexImageEXT_(xdpy_, glx_pixmap_, GLX_FRONT_LEFT_EXT);
110
113
 
111
 
    glXBindTexImageEXT(xdpy_, glx_pixmap_, GLX_FRONT_LEFT_EXT, NULL);
 
114
    glXBindTexImageEXT_(xdpy_, glx_pixmap_, GLX_FRONT_LEFT_EXT, NULL);
112
115
 
113
116
    glx_pixmap_bound_ = true;
114
117
}