Skip to content

Commit

Permalink
remove opengl extensions from caps unless FULL_INFO>1
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Apr 2, 2023
1 parent 7d344bc commit a71583d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 0 additions & 2 deletions xpra/client/gtk_base/gtk_client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -909,8 +909,6 @@ def make_hello(self) -> dict:
"icons.size" : (64, 64), #size we want
"icons.max_size" : (128, 128), #limit
})
if FULL_INFO:
capabilities["opengl"] = self.opengl_props
return capabilities


Expand Down
7 changes: 6 additions & 1 deletion xpra/client/gui/ui_client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,12 @@ def u(prefix, c):
u("control_commands", self.get_control_commands_caps())
if FULL_INFO>0:
u("platform", get_platform_info())
u("opengl", self.opengl_props)
if FULL_INFO==1:
#remove 'opengl.extensions'
op = dict((k,v) for k,v in self.opengl_props.items() if k!="extensions")
else:
op = self.opengl_props
caps["opengl"] = op
caps["session-type"] = get_session_type()
if self.desktop_fullscreen:
caps["desktop-fullscreen"] = True
Expand Down

0 comments on commit a71583d

Please sign in to comment.