diff --git a/src/glx/glx_pbuffer.c b/src/glx/glx_pbuffer.c index f7d9a631377..ebd130146d4 100644 --- a/src/glx/glx_pbuffer.c +++ b/src/glx/glx_pbuffer.c @@ -202,6 +202,8 @@ CreateDRIDrawable(Display *dpy, struct glx_config *config, pdraw->textureTarget = determineTextureTarget(attrib_list, num_attribs); pdraw->textureFormat = determineTextureFormat(attrib_list, num_attribs); + + pdraw->refcount = 1; #endif return GL_TRUE;