forked from AuroraMiddleware/gtk
Merge branch 'nielsdg/gsk-gl-renderer-assertion' into 'main'
gsk: Document gsk_renderer_realize() See merge request GNOME/gtk!4363
This commit is contained in:
commit
a56e187352
@ -289,10 +289,15 @@ gsk_renderer_is_realized (GskRenderer *renderer)
|
||||
*
|
||||
* Since GTK 4.6, the surface may be `NULL`, which allows using
|
||||
* renderers without having to create a surface.
|
||||
*
|
||||
* Note that it is mandatory to call [method@Gsk.Renderer.unrealize] before
|
||||
* destroying the renderer.
|
||||
*
|
||||
* Returns: Whether the renderer was successfully realized
|
||||
*/
|
||||
gboolean
|
||||
gsk_renderer_realize (GskRenderer *renderer,
|
||||
GdkSurface *surface,
|
||||
GdkSurface *surface,
|
||||
GError **error)
|
||||
{
|
||||
GskRendererPrivate *priv = gsk_renderer_get_instance_private (renderer);
|
||||
|
Loading…
Reference in New Issue
Block a user