Sweeping through my tree I found a few things that I think are generally
useful.

For this patch I don't remember the application that triggered this, but
I did see the problem in practice in some obscure test application, IIRC.

-Nathan
>From 204399556e5a62964a3ba442f2abb9648313c6fa Mon Sep 17 00:00:00 2001
From: Nathan Kidd <nk...@opentext.com>
Date: Thu, 26 Feb 2015 11:55:45 -0500
Subject: [PATCH 1/8] Do nothing in glXUseXFont if there's no current context

The GLX 1.4 spec section 3.3.11 states:
"glXUseXFont is ignored if there is no current GLX rendering context."

---
 server/xfonts.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/server/xfonts.c b/server/xfonts.c
index d49bf67..e6d6a38 100644
--- a/server/xfonts.c
+++ b/server/xfonts.c
@@ -134,6 +134,7 @@ void Fake_glXUseXFont(Font font, int first, int count, int listbase)
 	try {
 
 	GLXDrawable draw = _glXGetCurrentDrawable();
+	if (!draw) return;
 	if(winhash.find(draw, pbw))
 	{
 		/* Current drawable is a virtualized Window */
-- 
1.9.1

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
VirtualGL-Devel mailing list
VirtualGL-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtualgl-devel

Reply via email to