is_shared


Description:

[ Version ( since = "4.4" ) ]
public bool is_shared (GLContext other)

Checks if the two GL contexts can share resources.

When they can, the texture IDs from other can be used in this. This is particularly useful when passing `GdkGLTexture` objects between different contexts.

Contexts created for the same display with the same properties will always be compatible, even if they are created for different surfaces. For other contexts it depends on the GL backend.

Both contexts must be realized for this check to succeed. If either one is not, this function will return false .

Parameters:

this

a `GdkGLContext`

other

the `GdkGLContext` that should be compatible with this

Returns:

true if the two GL contexts are compatible.