From c4f5de6cc3b935025829af971b0b8010c1ecfedb Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Wed, 9 Aug 2006 20:21:52 +0200 Subject: [PATCH] Sanitized glxdri's Block/Wakeuphandler calling. __glXDRIleaveServer() and _enterServer() used to call DRIDoBlockHandler (resp DRIDoWakeupHandler) directly. They are now calling DRIBlockHandler (resp DRIWakeupHandler) to account for driver specific block/wakeup hooks. --- GL/glx/glxdri.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/GL/glx/glxdri.c b/GL/glx/glxdri.c index 6a1055439..cfa9996df 100644 --- a/GL/glx/glxdri.c +++ b/GL/glx/glxdri.c @@ -137,19 +137,13 @@ static const char CREATE_NEW_SCREEN_FUNC[] = static void __glXDRIleaveServer(void) { - int i; - - for (i = 0; i < screenInfo.numScreens; i++) - DRIDoBlockHandler(i, NULL, NULL, NULL); + DRIBlockHandler(NULL, NULL, NULL); } static void __glXDRIenterServer(void) { - int i; - - for (i = 0; i < screenInfo.numScreens; i++) - DRIDoWakeupHandler(i, NULL, 0, NULL); + DRIWakeupHandler(NULL, 0, NULL); } static void