diff options
Diffstat (limited to 'glx/glxext.c')
-rw-r--r-- | glx/glxext.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/glx/glxext.c b/glx/glxext.c index 9f9c0ed1f..546d968fd 100644 --- a/glx/glxext.c +++ b/glx/glxext.c @@ -347,6 +347,9 @@ void GlxExtensionInit(void) __glXDrawableRes = CreateNewResourceType((DeleteType)DrawableGone); __glXSwapBarrierRes = CreateNewResourceType((DeleteType)SwapBarrierGone); + if (!__glXContextRes || !__glXDrawableRes || !__glXSwapBarrierRes) + return; + RegisterResourceName(__glXContextRes, "GLXContext"); RegisterResourceName(__glXDrawableRes, "GLXDrawable"); RegisterResourceName(__glXSwapBarrierRes, "GLXSwapBarrier"); |