~peter-pearse/ubuntu/oneiric/xorg-server/prop001

« back to all changes in this revision

Viewing changes to debian/patches/215_glx_drawable_refcounting.diff

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2011-04-11 09:51:56 UTC
  • mfrom: (1.1.41 upstream) (0.1.26 experimental)
  • Revision ID: james.westby@ubuntu.com-20110411095156-ymlp7gnfsoplroug
Tags: 2:1.10.0.902-1ubuntu1
* Merge from Debian experimental.
  - dropped patches, included upstream:
    213_xichangehierarchy-check-oom.patch
    216_fix_sdksyms_build.diff, included upstream.
    218_getValuatorEvents_cleanup.patch
    219_xi1_handle_noncontinuous_valuator_data.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 glx/glxext.c      |   15 ++++++++++-----
19
19
 3 files changed, 28 insertions(+), 13 deletions(-)
20
20
 
21
 
diff --git a/glx/glxcmds.c b/glx/glxcmds.c
22
 
index de9c3f0..b3ea784 100644
23
 
--- a/glx/glxcmds.c
24
 
+++ b/glx/glxcmds.c
25
 
@@ -529,6 +529,7 @@ __glXGetDrawable(__GLXcontext *glxc, GLXDrawable drawId, ClientPtr client,
 
21
Index: xorg-server/glx/glxcmds.c
 
22
===================================================================
 
23
--- xorg-server.orig/glx/glxcmds.c      2011-04-06 18:25:24.000000000 +0300
 
24
+++ xorg-server/glx/glxcmds.c   2011-04-09 10:39:42.000000000 +0300
 
25
@@ -541,6 +541,7 @@
26
26
        *error = BadAlloc;
27
27
        return NULL;
28
28
     }
30
30
 
31
31
     return pGlxDraw;
32
32
 }
33
 
@@ -1099,8 +1100,10 @@ __glXDrawableInit(__GLXdrawable *drawable,
 
33
@@ -1145,8 +1146,10 @@
34
34
     drawable->pDraw = pDraw;
35
35
     drawable->type = type;
36
36
     drawable->drawId = drawId;
41
41
 
42
42
     return GL_TRUE;
43
43
 }
44
 
@@ -1130,14 +1133,18 @@ DoCreateGLXDrawable(ClientPtr client, __GLXscreen *pGlxScreen,
 
44
@@ -1176,14 +1179,18 @@
45
45
        pGlxDraw->destroy (pGlxDraw);
46
46
        return BadAlloc;
47
47
     }
67
67
     }
68
68
 
69
69
     return Success;
70
 
diff --git a/glx/glxdrawable.h b/glx/glxdrawable.h
71
 
index 2a365c5..80c3234 100644
72
 
--- a/glx/glxdrawable.h
73
 
+++ b/glx/glxdrawable.h
74
 
@@ -51,8 +51,11 @@ struct __GLXdrawable {
 
70
Index: xorg-server/glx/glxdrawable.h
 
71
===================================================================
 
72
--- xorg-server.orig/glx/glxdrawable.h  2011-04-06 18:25:24.000000000 +0300
 
73
+++ xorg-server/glx/glxdrawable.h       2011-04-09 10:39:42.000000000 +0300
 
74
@@ -51,8 +51,11 @@
75
75
     void      (*waitX)(__GLXdrawable *);
76
76
     void      (*waitGL)(__GLXdrawable *);
77
77
 
83
83
 
84
84
     /*
85
85
     ** Either GLX_DRAWABLE_PIXMAP, GLX_DRAWABLE_WINDOW or
86
 
diff --git a/glx/glxext.c b/glx/glxext.c
87
 
index 4bd5d6b..77db8b0 100644
88
 
--- a/glx/glxext.c
89
 
+++ b/glx/glxext.c
90
 
@@ -128,13 +128,18 @@ static Bool DrawableGone(__GLXdrawable *glxPriv, XID xid)
 
86
Index: xorg-server/glx/glxext.c
 
87
===================================================================
 
88
--- xorg-server.orig/glx/glxext.c       2011-04-06 18:25:24.000000000 +0300
 
89
+++ xorg-server/glx/glxext.c    2011-04-09 10:39:42.000000000 +0300
 
90
@@ -128,13 +128,18 @@
91
91
      * constructors, we added it as a glx drawable resource under both
92
92
      * its glx drawable ID and it X drawable ID.  Remove the other
93
93
      * resource now so we don't a callback for freed memory. */
111
111
     for (c = glxAllContexts; c; c = next) {
112
112
        next = c->next;
113
113
        if (c->isCurrent && (c->drawPriv == glxPriv || c->readPriv == glxPriv)) {
114
 
1.7.2.3
115
 
 
116
 
_______________________________________________
117
 
xorg-devel@lists.x.org: X.Org development
118
 
Archives: http://lists.x.org/archives/xorg-devel
119
 
Info: http://lists.x.org/mailman/listinfo/xorg-devel