Skip to content

cogl/texture: Type check introspected calls

Jonas Ådahl requested to merge jadahl/mutter:wip/guard-cogl-texture into main

CoglTexture can be used by e.g. Javascript, and the convention is to be more forgiving regarding passed input so that invalid Javascript calls doesn't cause actual SIGSEGV/SIGABRT. As elsewhere, do this by sprinkeling g_return(_val)_if_fail() on introspected functions.

Related: https://bugzilla.redhat.com/show_bug.cgi?id=2124322

Merge request reports