broadway: Make the use of next_texture_id clearer

It used to actually be pre-incremented, so meant like "one before
next id".
This commit is contained in:
Alexander Larsson 2017-12-05 15:54:36 +01:00
parent d141bd4121
commit 2cad2c21e6

View File

@ -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;