cogl: Use uint64_t for size params
As we are using a GParamSpecUint64 for that property
which makes it fail under 32bits platforms
Fixes: 6efd4a228
("cogl/cleanup: Use construct-only properties for
CoglBuffer")
Closes https://gitlab.gnome.org/GNOME/mutter/-/issues/3408
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3683>
This commit is contained in:
parent
bc72428a02
commit
260a8d92dc
6 changed files with 19 additions and 18 deletions
|
@ -57,7 +57,7 @@ cogl_attribute_buffer_new_with_size (CoglContext *context,
|
||||||
|
|
||||||
buffer = g_object_new (COGL_TYPE_ATTRIBUTE_BUFFER,
|
buffer = g_object_new (COGL_TYPE_ATTRIBUTE_BUFFER,
|
||||||
"context", context,
|
"context", context,
|
||||||
"size", bytes,
|
"size", (uint64_t) bytes,
|
||||||
"default-target", COGL_BUFFER_BIND_TARGET_ATTRIBUTE_BUFFER,
|
"default-target", COGL_BUFFER_BIND_TARGET_ATTRIBUTE_BUFFER,
|
||||||
"update-hint", COGL_BUFFER_UPDATE_HINT_STATIC,
|
"update-hint", COGL_BUFFER_UPDATE_HINT_STATIC,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
|
@ -53,13 +53,14 @@ cogl_index_buffer_init (CoglIndexBuffer *buffer)
|
||||||
* indices buffer should be able to contain multiple ranges of indices
|
* indices buffer should be able to contain multiple ranges of indices
|
||||||
* which the wiki design doesn't currently consider. */
|
* which the wiki design doesn't currently consider. */
|
||||||
CoglIndexBuffer *
|
CoglIndexBuffer *
|
||||||
cogl_index_buffer_new (CoglContext *context, size_t bytes)
|
cogl_index_buffer_new (CoglContext *context,
|
||||||
|
size_t bytes)
|
||||||
{
|
{
|
||||||
CoglIndexBuffer *indices;
|
CoglIndexBuffer *indices;
|
||||||
|
|
||||||
indices = g_object_new (COGL_TYPE_INDEX_BUFFER,
|
indices = g_object_new (COGL_TYPE_INDEX_BUFFER,
|
||||||
"context", context,
|
"context", context,
|
||||||
"size", bytes,
|
"size", (uint64_t) bytes,
|
||||||
"default-target", COGL_BUFFER_BIND_TARGET_INDEX_BUFFER,
|
"default-target", COGL_BUFFER_BIND_TARGET_INDEX_BUFFER,
|
||||||
"update-hint", COGL_BUFFER_UPDATE_HINT_STATIC,
|
"update-hint", COGL_BUFFER_UPDATE_HINT_STATIC,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
|
@ -71,7 +71,7 @@ _cogl_pixel_buffer_new (CoglContext *context,
|
||||||
|
|
||||||
pixel_buffer = g_object_new (COGL_TYPE_PIXEL_BUFFER,
|
pixel_buffer = g_object_new (COGL_TYPE_PIXEL_BUFFER,
|
||||||
"context", context,
|
"context", context,
|
||||||
"size", size,
|
"size", (uint64_t) size,
|
||||||
"default-target", COGL_BUFFER_BIND_TARGET_PIXEL_UNPACK,
|
"default-target", COGL_BUFFER_BIND_TARGET_PIXEL_UNPACK,
|
||||||
"update-hint", COGL_BUFFER_UPDATE_HINT_STATIC,
|
"update-hint", COGL_BUFFER_UPDATE_HINT_STATIC,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
Loading…
Reference in a new issue