summaryrefslogtreecommitdiff
path: root/GL
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@code-monkey.de>2006-08-09 20:21:52 +0200
committerTilman Sauerbeck <tilman@code-monkey.de>2006-08-09 20:21:52 +0200
commitc4f5de6cc3b935025829af971b0b8010c1ecfedb (patch)
tree2218192b7421dccf57813931a1a708e4a4c3e370 /GL
parent12dbd8a02f797ad57a1be683a02a1fcb1ca35438 (diff)
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.
Diffstat (limited to 'GL')
-rw-r--r--GL/glx/glxdri.c10
1 files 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