src/video/x11/SDL_x11render.c
changeset 3239 ab5aebd50add
parent 3066 8cbf68bdf81b
child 3520 83518f8fcd61
equal deleted inserted replaced
3238:96492d29034a 3239:ab5aebd50add
   357                 shminfo->readOnly = False;
   357                 shminfo->readOnly = False;
   358                 if (shminfo->shmaddr != (char *) -1) {
   358                 if (shminfo->shmaddr != (char *) -1) {
   359                     shm_error = False;
   359                     shm_error = False;
   360                     X_handler = XSetErrorHandler(shm_errhandler);
   360                     X_handler = XSetErrorHandler(shm_errhandler);
   361                     XShmAttach(renderdata->display, shminfo);
   361                     XShmAttach(renderdata->display, shminfo);
   362                     XSync(renderdata->display, True);
   362                     XSync(renderdata->display, False);
   363                     XSetErrorHandler(X_handler);
   363                     XSetErrorHandler(X_handler);
   364                     if (shm_error) {
   364                     if (shm_error) {
   365                         shmdt(shminfo->shmaddr);
   365                         shmdt(shminfo->shmaddr);
   366                     }
   366                     }
   367                 }
   367                 }