mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
Set SPICE_SURFACE_FLAGS_STREAMING_MODE if gl_draw_stream
This commit is contained in:
parent
25d92384a8
commit
0539aacd4f
@ -165,7 +165,7 @@ void dcc_create_surface(DisplayChannelClient *dcc, RedSurface *surface)
|
||||
|
||||
display = DCC_TO_DC(dcc);
|
||||
flags = is_primary_surface(display, surface) ? SPICE_SURFACE_FLAGS_PRIMARY : 0;
|
||||
|
||||
flags |= is_stream(display) ? SPICE_SURFACE_FLAGS_STREAMING_MODE : 0;
|
||||
/* don't send redundant create surface commands to client */
|
||||
if (display->get_during_target_migrate() ||
|
||||
dcc->priv->surface_client_created[surface_id]) {
|
||||
|
||||
@ -338,6 +338,10 @@ static inline bool is_primary_surface(DisplayChannel *display, const RedSurface
|
||||
return surface->id == 0;
|
||||
}
|
||||
|
||||
static inline bool is_stream(DisplayChannel *display) {
|
||||
return display->priv->gl_draw_stream;
|
||||
}
|
||||
|
||||
static inline void region_add_clip_rects(QRegion *rgn, SpiceClipRects *data)
|
||||
{
|
||||
int i;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user