From 2cad2c21e60f864f62eed2391161af5c4fd48db9 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 5 Dec 2017 15:54:36 +0100 Subject: [PATCH] broadway: Make the use of next_texture_id clearer It used to actually be pre-incremented, so meant like "one before next id". --- gdk/broadway/gdkbroadway-server.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdk/broadway/gdkbroadway-server.c b/gdk/broadway/gdkbroadway-server.c index 87c1bb73db..548f180375 100644 --- a/gdk/broadway/gdkbroadway-server.c +++ b/gdk/broadway/gdkbroadway-server.c @@ -65,6 +65,7 @@ static void gdk_broadway_server_init (GdkBroadwayServer *server) { server->next_serial = 1; + server->next_texture_id = 1; } static void @@ -647,7 +648,7 @@ gdk_broadway_server_upload_texture (GdkBroadwayServer *server, BroadwayRequestUploadTexture msg; PngData data; - id = ++server->next_texture_id; + id = server->next_texture_id++; data.fd = open_shared_memory (); data.size = 0;