diff options
Diffstat (limited to 'src/sna/sna_driver.c')
-rw-r--r-- | src/sna/sna_driver.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c index d12c2b0e..e242b2fe 100644 --- a/src/sna/sna_driver.c +++ b/src/sna/sna_driver.c @@ -82,6 +82,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE. static DevPrivateKeyRec sna_private_index; static DevPrivateKeyRec sna_pixmap_index; +static DevPrivateKeyRec sna_dri_index; static DevPrivateKeyRec sna_gc_index; static DevPrivateKeyRec sna_glyph_key; static DevPrivateKeyRec sna_window_key; @@ -810,6 +811,10 @@ sna_register_all_privates(void) return FALSE; assert(sna_pixmap_index.offset == sizeof(void*)); + if (!dixRegisterPrivateKey(&sna_dri_index, PRIVATE_PIXMAP, 0)) + return FALSE; + assert(sna_dri_index.offset == 2*sizeof(void*)); + if (!dixRegisterPrivateKey(&sna_gc_index, PRIVATE_GC, sizeof(FbGCPrivate))) return FALSE; |