dont need these 2 syncs.

SVN revision: 46126
This commit is contained in:
Carsten Haitzler 2010-02-13 11:37:34 +00:00
parent bc32b334d5
commit 6abac56d9d
1 changed files with 15 additions and 9 deletions

View File

@ -297,16 +297,22 @@ evas_software_xlib_x_output_buffer_new(Display *d, Visual *v, int depth, int w,
if (xob->shm_info->shmaddr != NULL)
{
XErrorHandler ph;
XSync(d, False);
_x_err = 0;
ph = XSetErrorHandler((XErrorHandler)
x_output_tmp_x_err);
if (try_shm == 2) // only needed during testing
{
XSync(d, False);
_x_err = 0;
ph = XSetErrorHandler((XErrorHandler)
x_output_tmp_x_err);
}
XShmAttach(d, xob->shm_info);
XSync(d, False);
XSetErrorHandler((XErrorHandler)ph);
if (!_x_err)
{
if (try_shm == 2) // only needed during testing
{
XSync(d, False);
XSetErrorHandler((XErrorHandler)ph);
}
if (!_x_err)
{
// printf("SHM++ ID=%i -> %i bytes [%i creates]\n",
// xob->shm_info->shmid,
// xob->xim->bytes_per_line * xob->xim->height,