summaryrefslogtreecommitdiff
path: root/libGL/client_glx.c
diff options
context:
space:
mode:
authorSangjin Kim <sangjin3.kim@samsung.com>2012-09-07 18:18:29 +0900
committerSangjin Kim <sangjin3.kim@samsung.com>2012-09-07 18:18:29 +0900
commit7a766bf66498defb8e7477c6c402e23f1d04451b (patch)
tree1c121e1fe16ed746c32a864cf8e52e3422dfc969 /libGL/client_glx.c
parent3c5625e0d08d765e9c832327203d757210c5c5d8 (diff)
downloadsimulator-opengl-7a766bf66498defb8e7477c6c402e23f1d04451b.tar.gz
simulator-opengl-7a766bf66498defb8e7477c6c402e23f1d04451b.tar.bz2
simulator-opengl-7a766bf66498defb8e7477c6c402e23f1d04451b.zip
[Title] pixmap detection bug fix.submit/master/20120920.1512032.0_alphamaster
[Type] bug fix [Module] opengl [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase]
Diffstat (limited to 'libGL/client_glx.c')
-rwxr-xr-xlibGL/client_glx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libGL/client_glx.c b/libGL/client_glx.c
index 77a9c76..dd23ea1 100755
--- a/libGL/client_glx.c
+++ b/libGL/client_glx.c
@@ -511,9 +511,12 @@ static void _get_window_info(Display *dpy, Window win, WindowInfoStruct* info)
#ifndef XCB_EVENT_ERROR_BAD_MATCH
#define XCB_EVENT_ERROR_BAD_MATCH 8
+#define XCB_EVENT_ERROR_BAD_WINDOW 3
#endif
/* BAD_MATCH indicate the drawable is PIXMAP instead of window */
- if ( !attr && error->error_code != XCB_EVENT_ERROR_BAD_MATCH )
+ if ( !attr &&
+ error->error_code != XCB_EVENT_ERROR_BAD_MATCH &&
+ error->error_code != XCB_EVENT_ERROR_BAD_WINDOW )
{
info->width = 0;
info->height= 0;