You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the code uses Clutter.Image just for it capacity in creating a CoglTexture for you. Instead, please replace it with either using St.ImageContent (not really a solution, just working around ClutterImage being merged with StImageContent in the future).
Or ideally, replace the places where you create a ClutterImage to get the texture by creating the Cogl.Texture manually yourself.
The code does basically
ClutterContext*context=_clutter_context_get_default (); // Replace with getting the context from the actorClutterBackend*backend=clutter_context_get_backend (context);
CoglContext*cogl_context=clutter_backend_get_cogl_context (backend);
CoglTexture*texture_2d;
texture_2d=cogl_texture_2d_new_from_data (cogl_context,
width,
height,
pixel_format,
row_stride,
data,
error);
The text was updated successfully, but these errors were encountered:
Currently, the code uses Clutter.Image just for it capacity in creating a CoglTexture for you. Instead, please replace it with either using St.ImageContent (not really a solution, just working around ClutterImage being merged with StImageContent in the future).
Or ideally, replace the places where you create a ClutterImage to get the texture by creating the Cogl.Texture manually yourself.
The code does basically
The text was updated successfully, but these errors were encountered: