mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-06 21:15:43 +00:00
fix(mesa): drop the added comment from the drisw swap interval patch
This commit is contained in:
1 parent
6ace78c90d
commit
9329554525
1 file changed
+3
-4
+3
-4
@@ -17,19 +17,18 @@ tearing. GLX_MAX_SWAP_INTERVAL_EXT already reads as 0 on such screens.
|
||||
Cc: mesa-stable
|
||||
Signed-off-by: pgm1207 <104554896+pgm1207@users.noreply.github.com>
|
||||
---
|
||||
src/glx/glx_pbuffer.c | 7 +++++--
|
||||
1 file changed, 5 insertions(+), 2 deletions(-)
|
||||
src/glx/glx_pbuffer.c | 6 ++++--
|
||||
1 file changed, 4 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/glx/glx_pbuffer.c b/src/glx/glx_pbuffer.c
|
||||
index 8c09d4b..9ecee6a 100644
|
||||
--- a/src/glx/glx_pbuffer.c
|
||||
+++ b/src/glx/glx_pbuffer.c
|
||||
@@ -313,13 +313,16 @@ __glXQueryDrawable(Display * dpy, GLXDrawable drawable,
|
||||
@@ -313,13 +313,15 @@ __glXQueryDrawable(Display * dpy, GLXDrawable drawable,
|
||||
|
||||
if (pdraw) {
|
||||
if (attribute == GLX_SWAP_INTERVAL_EXT) {
|
||||
- *value = abs(pdraw->psc->driScreen.getSwapInterval(pdraw));
|
||||
+ /* Only DRI3 and kopper set the hook; a plain drisw screen has none. */
|
||||
+ *value = pdraw->psc->driScreen.getSwapInterval ?
|
||||
+ abs(pdraw->psc->driScreen.getSwapInterval(pdraw)) : 0;
|
||||
return 1;
|
||||
|
||||
Reference in new issue
Block a user