mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-27 10:30:10 +01:00
If caller is not using glamor screen, we can't register
the block handler. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
This commit is contained in:
parent
9ff39e53eb
commit
90eaac96ae
1 changed files with 7 additions and 7 deletions
|
|
@ -334,16 +334,16 @@ glamor_init(ScreenPtr screen, unsigned int flags)
|
|||
glamor_priv->dispatch.glGetIntegerv(GL_MAX_RENDERBUFFER_SIZE,
|
||||
&glamor_priv->max_fbo_size);
|
||||
|
||||
if (!RegisterBlockAndWakeupHandlers(_glamor_block_handler,
|
||||
_glamor_wakeup_handler,
|
||||
(void *)
|
||||
&glamor_priv->dispatch)) {
|
||||
goto fail;
|
||||
}
|
||||
|
||||
glamor_set_debug_level(&glamor_debug_level);
|
||||
|
||||
if (flags & GLAMOR_USE_SCREEN) {
|
||||
if (!RegisterBlockAndWakeupHandlers(_glamor_block_handler,
|
||||
_glamor_wakeup_handler,
|
||||
(void *)
|
||||
&glamor_priv->dispatch)) {
|
||||
goto fail;
|
||||
}
|
||||
|
||||
glamor_priv->saved_close_screen = screen->CloseScreen;
|
||||
screen->CloseScreen = glamor_close_screen;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue